ChildrenOutletContexts
存储关于子级(=嵌套)RouterOutlet
的上下文信息。
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
}
方法
实例化 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. |