• Overview
@angular/router

ChildrenOutletContexts

Class

Store contextual information about the children (= nested) RouterOutlet

  
    class ChildrenOutletContexts {}
  
  

onChildOutletCreated

void

Called when a RouterOutlet directive is instantiated

@paramchildNamestring
@returnsvoid

onChildOutletDestroyed

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.

@paramchildNamestring
@returnsvoid

onOutletDeactivated

Map<string, OutletContext>

Called when the corresponding route is deactivated during navigation. Because the component get destroyed, all children outlet are destroyed.

@returnsMap<string, OutletContext>

onOutletReAttached

void
@paramcontextsMap<string, OutletContext>
@returnsvoid

getOrCreateContext

@paramchildNamestring

getContext

@paramchildNamestring
@returnsOutletContext | null
Jump to details