This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

ROUTER_INITIALIZER

A token for the router initializer that will be called after the app is bootstrapped.

const ROUTER_INITIALIZER: InjectionToken<(compRef: ComponentRef<any>) => void>;
      
      const ROUTER_INITIALIZER: InjectionToken<(compRef: ComponentRef<any>) => void>;