• Overview
@angular/router

RouterOutlet

directive

Acts as a placeholder that Angular dynamically fills based on the current router state.

  
    class RouterOutlet implements OnDestroy ,OnInit ,RouterOutletContract {}
  
  

name

string

The name of the outlet

activateEvents

deactivateEvents

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
@paramchangesSimpleChanges
@returnsvoid

ngOnDestroy

void
@returnsvoid

ngOnInit

void
@returnsvoid

isActivated

boolean

component

Object

activatedRoute

activatedRouteData

detach

Called when the RouteReuseStrategy instructs to detach the subtree

@returnsComponentRef<any>

attach

void

Called when the RouteReuseStrategy instructs to re-attach a previously detached subtree

@paramrefComponentRef<any>
@paramactivatedRouteActivatedRoute
@returnsvoid

deactivate

void
@returnsvoid

activateWith

void
@paramactivatedRouteActivatedRoute
@paramenvironmentInjectorEnvironmentInjector
@returnsvoid
Jump to details