Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "router/page-router-outlet"

Index

Type aliases

ProviderMap

ProviderMap: Map<Type<any> | InjectionToken<any>, any>

Variables

Const loaderRefSymbol

loaderRefSymbol: unique symbol

Const pageRouterActivatedSymbol

pageRouterActivatedSymbol: unique symbol

Functions

destroyComponentRef

  • destroyComponentRef(componentRef: ComponentRef<any>): void

findTopActivatedRouteNodeForOutlet

  • findTopActivatedRouteNodeForOutlet(activatedRoute: ActivatedRouteSnapshot): ActivatedRouteSnapshot
  • There are cases where multiple activatedRoute nodes should be associated/handled by the same PageRouterOutlet. We can gat additional ActivatedRoutes nodes when there is:

    • Lazy loading - there is an additional ActivatedRoute node for the RouteConfig with the loadChildren setup
    • Componentless routes - there is an additional ActivatedRoute node for the componentless RouteConfig

    Example: R <-- root | feature (lazy module) <-- RouteConfig: { path: "lazy", loadChildren: "./feature/feature.module#FeatureModule" } | module (componentless route) <-- RouteConfig: { path: "module", children: [...] } // Note: No 'component' | home <-- RouteConfig: { path: "module", component: MyComponent } - this is what we get as activatedRoute param

    In these cases we will mark the top-most node (feature). NSRouteReuseStrategy will detach the tree there and use this ActivateRoute as a kay for caching.

    Parameters

    • activatedRoute: ActivatedRouteSnapshot

    Returns ActivatedRouteSnapshot

routeToString

  • routeToString(activatedRoute: ActivatedRoute | ActivatedRouteSnapshot): string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method