Store contextual information about the children (= nested) RouterOutlet
方法
|
---|
Called when a RouterOutlet directive is instantiated |
onChildOutletCreated(childName: string, outlet: RouterOutlet): void参数返回值void
|
|
---|
Called when a RouterOutlet directive is destroyed. We need to keep the context as the outlet could be destroyed inside a NgIf and might be re-created later. |
onChildOutletDestroyed(childName: string): void参数返回值void
|
|
---|
Called when the corresponding route is deactivated during navigation. Because the component get destroyed, all children outlet are destroyed. |
onOutletDeactivated(): Map<string, OutletContext>参数没有参数。 返回值Map<string, OutletContext>
|