RouterOutlet
directive
Acts as a placeholder that Angular dynamically fills based on the current router state.
API
Description
class RouterOutlet implements OnDestroy ,OnInit ,RouterOutletContract {}
name
string
The name of the outlet
activateEvents
EventEmitter<any>
deactivateEvents
EventEmitter<any>
attachEvents
EventEmitter<unknown>
Emits an attached component instance when the RouteReuseStrategy
instructs to re-attach a
previously detached subtree.
detachEvents
EventEmitter<unknown>
Emits a detached component instance when the RouteReuseStrategy
instructs to detach the
subtree.
routerOutletData
InputSignal<unknown>
Data that will be provided to the child injector through the ROUTER_OUTLET_DATA
token.
When unset, the value of the token is undefined
by default.
supportsBindingToComponentInputs
true
ngOnChanges
void
@returns
void
ngOnDestroy
void
@returns
void
ngOnInit
void
@returns
void
isActivated
boolean
component
Object
activatedRoute
activatedRouteData
detach
ComponentRef<any>
Called when the RouteReuseStrategy
instructs to detach the subtree
@returns
ComponentRef<any>
attach
void
Called when the RouteReuseStrategy
instructs to re-attach a previously detached subtree
@returns
void
deactivate
void
@returns
void
activateWith
void
Jump to details