ChildrenOutletContexts
Store contextual information about the children (= nested) RouterOutlet
class ChildrenOutletContexts {
onChildOutletCreated(childName: string, outlet: RouterOutletContract): void
onChildOutletDestroyed(childName: string): void
onOutletDeactivated(): Map<string, OutletContext>
onOutletReAttached(contexts: Map<string, OutletContext>)
getOrCreateContext(childName: string): OutletContext
getContext(childName: string): OutletContext | null
}
Provided in
-
'root'
Methods
onChildOutletCreated() | ||||||
---|---|---|---|---|---|---|
Called when a |
||||||
Parameters
Returns
|
onChildOutletDestroyed() |
---|
Called when a |
onOutletDeactivated() |
---|
Called when the corresponding route is deactivated during navigation. Because the component get destroyed, all children outlet are destroyed. |
ParametersThere are no parameters. Returns
|
onOutletReAttached() | |||
---|---|---|---|
Parameters
|
getOrCreateContext() |
---|
getContext() | |||
---|---|---|---|
Parameters
Returns
|