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

@ -6,6 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {InjectionToken} from '@angular/core';
/**
* This class should not be used directly by an application developer. Instead, use
* {@link Location}.
@ -50,6 +51,12 @@ export abstract class PlatformLocation {
abstract back(): void;
}
/**
* @whatItDoes indicates when a location is initialized
* @experimental
*/
export const LOCATION_INITIALIZED = new InjectionToken<Promise<any>>('Location Initialized');
/**
* A serializable version of the event from onPopState or onHashChange
*