core/navigator/navigator.service.ts
A service which defines the navigator.
Properties |
Methods |
|
Accessors |
constructor(rootInjector: Injector, router: Router)
|
| add | ||||||||
add(node: NavigatorNode)
|
||||||||
|
Adds a new node to the navigator.
Parameters :
Returns :
void
|
| openOnFirstUrl | ||||||||
openOnFirstUrl(node: NavigatorNode)
|
||||||||
|
Checks whenever a navigator entry associated with the given URL should be expanded.
Parameters :
Returns :
any
|
| refresh |
refresh()
|
|
Refresh the extension factories.
Returns :
void
|
| remove | ||||||||
remove(node: NavigatorNode)
|
||||||||
|
Removes a node from the navigator.
Parameters :
Returns :
void
|
| Protected emitNewState |
emitNewState()
|
|
Emits a new state.
Returns :
void
|
| map | ||||||||
map(mappedProperty: (undefined) => void)
|
||||||||
|
Maps to a property and just returns that property.
Parameters :
Returns :
Observable<any>
|
| factories |
Type : ExtensionFactory<NavigatorNode>[]
|
Default value : []
|
|
Additional factories that can be added by plugins. |
| firstUrl |
Default value : true
|
|
Indicates whether the menu entry associated with the given URL should be expanded. |
| injectors |
Type : []
|
Default value : [this.rootInjector]
|
| items$ |
Type : Observable<NavigatorNode[]>
|
|
Navigator menu items observable. It emits the current list of nodes in the navigator. |
| Readonly refreshTrigger |
Default value : new Subject()
|
|
Refresh the extension factories subject. |
| state |
getstate()
|
|
Returns the current state.
Returns :
Set<NavigatorNode>
|