ChildrenOutletContexts
Store contextual information about the children (= nested) RouterOutlet
class ChildrenOutletContexts {
onChildOutletCreated(childName: string, outlet: RouterOutlet): void
onChildOutletDestroyed(childName: string): void
onOutletDeactivated(): Map<string, OutletContext>
onOutletReAttached(contexts: Map<string, OutletContext>)
getOrCreateContext(childName: string): OutletContext
getContext(childName: string): OutletContext | null
}
方法
Called when a | ||||||
参数
返回值
|
Called when a |
Called when the corresponding route is deactivated during navigation. Because the component get destroyed, all children outlet are destroyed. |