RouterOutlet
Acts as a placeholder that Angular dynamically fills based on the current router state.
NgModule
Selectors
Properties
Property | Description |
---|---|
@Output('activate')
|
|
@Output('deactivate')
|
|
isActivated: boolean
|
Read-only. |
component: Object
|
Read-only. |
activatedRoute: ActivatedRoute
|
Read-only. |
activatedRouteData: Data
|
Read-only. |
Template variable references
Identifier | Usage |
---|---|
outlet |
#myTemplateVar="outlet" |
Description
<router-outlet></router-outlet>
<router-outlet name='left'></router-outlet>
<router-outlet name='right'></router-outlet>
A router outlet will emit an activate event any time a new component is being instantiated, and a deactivate event when it is being destroyed.
<router-outlet
(activate)='onActivate($event)'
(deactivate)='onDeactivate($event)'></router-outlet>
Methods
ParametersThere are no parameters. Returns
|
ParametersThere are no parameters. Returns
|
Called when the |
ParametersThere are no parameters. Returns
|
Called when the |
||||
Parameters
|
ParametersThere are no parameters. Returns
|
Parameters
|