fix(router): do not finish bootstrap until all the routes are resolved (#14608)

Fixes #12162
closes #14155
This commit is contained in:
Victor Berchet
2017-02-20 18:37:38 -08:00
committed by GitHub
parent c2e0f71a78
commit 2a191cae2d
12 changed files with 304 additions and 154 deletions

View File

@ -25,7 +25,9 @@ export const ROUTES = [
@NgModule({
imports: [WorkerAppModule, RouterModule.forRoot(ROUTES, {useHash: true})],
providers: [WORKER_APP_LOCATION_PROVIDERS],
providers: [
WORKER_APP_LOCATION_PROVIDERS,
],
bootstrap: [App],
declarations: [App, Start, Contact, About]
})