Const _UIROUTER_INSTANCE_PROVIDERS
_UIROUTER_INSTANCE_PROVIDERS: Provider[] = [{provide: UIRouter,useFactory: uiRouterFactory,deps: [LocationStrategy, UIROUTER_ROOT_MODULE, UIROUTER_MODULE_TOKEN, Injector],},{ provide: UIView.PARENT_INJECT, useFactory: parentUIViewInjectFactory, deps: [StateRegistry] },{ provide: APP_INITIALIZER, useFactory: appInitializer, deps: [UIRouter], multi: true },]
Const _UIROUTER_SERVICE_PROVIDERS
_UIROUTER_SERVICE_PROVIDERS: Provider[] = [{ provide: StateService, useFactory: fnStateService, deps: [UIRouter] },{ provide: TransitionService, useFactory: fnTransitionService, deps: [UIRouter] },{ provide: UrlMatcherFactory, useFactory: fnUrlMatcherFactory, deps: [UIRouter] },{ provide: UrlRouter, useFactory: fnUrlRouter, deps: [UIRouter] },{ provide: UrlService, useFactory: fnUrlService, deps: [UIRouter] },{ provide: ViewService, useFactory: fnViewService, deps: [UIRouter] },{ provide: StateRegistry, useFactory: fnStateRegistry, deps: [UIRouter] },{ provide: UIRouterGlobals, useFactory: fnGlobals, deps: [UIRouter] },]
The UI-Router providers, for use in your application bootstrap
use UIRouterModule.forRoot