AngularJS Service that determines the 'state' of the app.
Members
(private, inner) currentState :string
Stored value for current active state name
- Source:
Type:
-
string
(private, inner) paused :boolean
Stored pause state
- Source:
Type:
-
boolean
(private, inner) states :Object.<string, boolean>
Stored set of all possible states and which is active.
- Source:
Type:
-
Object.<string, boolean>
Methods
(static) get() → {string}
Get the current active state name.
- Source:
Returns:
- Type:
-
string
(static) set(key)
Set a state to active
- Source:
Parameters:
Name | Type | Description |
---|---|---|
key |
string
|
The name of the state to set active. |
(static) pause(status)
Set paused status.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
status |
boolean
|
(static) isPaused() → {boolean}
Check paused status.
- Source:
Returns:
- Type:
-
boolean