RouterOutletContract
An interface that defines the contract for developing a component outlet for the Router.
      
      interface RouterOutletContract {
  isActivated: boolean
  component: Object | null
  activatedRouteData: Data
  activatedRoute: ActivatedRoute | null
  activateWith(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver): void
  deactivate(): void
  detach(): ComponentRef<unknown>
  attach(ref: ComponentRef<unknown>, activatedRoute: ActivatedRoute): void
}
    实现类
参见
说明
An outlet acts as a placeholder that Angular dynamically fills based on the current router state.
A router outlet should register itself with the Router via ChildrenOutletContexts#onChildOutletCreated and unregister with ChildrenOutletContexts#onChildOutletDestroyed. When the Router identifies a matched Route, it looks for a registered outlet in the ChildrenOutletContexts and activates it.
属性
| 属性 | 说明 | 
|---|---|
| isActivated: boolean | Whether the given outlet is activated. An outlet is considered "activated" if it has an active component. | 
| component: Object | null | The instance of the activated component or  | 
| activatedRouteData: Data | The  | 
| activatedRoute: ActivatedRoute | null | The  | 
方法
| Called by the  | ||||||
|       
      参数
 返回值
 | 
| A request to destroy the currently activated component. | 
|       
      参数没有参数。 返回值
 | 
| When a  | 
| Called when the  | 
| This is similar to  | 
| Called when the  | ||||||
|       
      参数
 返回值
 | 
