diff --git a/src/ng2/providers.ts b/src/ng2/providers.ts index 514164fef..60792735d 100644 --- a/src/ng2/providers.ts +++ b/src/ng2/providers.ts @@ -74,12 +74,14 @@ let uiRouterFactory = (routerConfig: UIRouterConfig, location: UIRouterLocation, router.stateRegistry.stateQueue.autoFlush(router.stateService); - routerConfig.configure(router); - - if (!router.urlRouterProvider.interceptDeferred) { - router.urlRouter.listen(); - router.urlRouter.sync(); - } + setTimeout(() => { + routerConfig.configure(router); + + if (!router.urlRouterProvider.interceptDeferred) { + router.urlRouter.listen(); + router.urlRouter.sync(); + } + }); return router; };