UNPKG

@bespunky/angular-zen

Version:

The Angular tools you always wished were there.

19 lines (18 loc) 777 B
import { InjectionToken, Provider } from '@angular/core'; import { RouterXConfig } from './router-x-config'; /** * An injection token for the provided router configuration. * `RouterExModule.forRoot()` facilitates the injection of this token. No need to inject directly. */ export declare const RouterX: InjectionToken<RouterXConfig>; /** The default configuration for the router-x module. */ export declare const DefaultRouterXConfig: RouterXConfig; /** * Creates a provider for the router-x module configuration. * Options not provided will be replaced with their default values according to `DefaultRouterXConfig`. * * @export * @param {RouterXConfig} config * @returns {Provider} */ export declare function provideRouterXConfig(config?: RouterXConfig): Provider;