Hierarchy

Implements

Index

Constructors

constructor

Properties

serviceName

serviceName: string = this.constructor.name

Static hasInstance

hasInstance: boolean = false

Static initialState

initialState: object

Type declaration

Static isSingleton

isSingleton: boolean = true

Static serviceAfterInit

serviceAfterInit: Subject<Service> = new Subject<Service>()

lifecycle hook

Accessors

state

store

  • get store(): Store<any>

Static instance

  • get instance(): any

Methods

SET_SETTINGS

advancedSettingEnabled

  • advancedSettingEnabled(): boolean

Protected afterInit

  • afterInit(): void
  • calls only once per application life all observers are ready to listen service's events

    Returns void

getCategories

  • getCategories(): string[]

getSettingsFormData

init

  • init(): void

loadSettingsIntoStore

  • loadSettingsIntoStore(): void

Protected mounted

  • mounted(): void

setSettings

showSettings

  • showSettings(categoryName?: string): void

Static convertFormDataToState

Static createInstance

  • createInstance(ServiceClass: any): any

Static getResourceId

  • getResourceId(resource: any): string

Static getStore

  • getStore(): Store<any>

Static setupInitFunction

  • setupInitFunction(fn: function): void

Static setupProxy

  • setupProxy(fn: function): void

Static setupVuexStore

  • setupVuexStore(store: Store<any>): void