fix(router): top-levels do not work in ngIf

This commit is contained in:
vsavkin
2016-06-26 11:52:32 -07:00
parent 855f3afb28
commit d20488752b
5 changed files with 44 additions and 11 deletions

View File

@ -276,7 +276,7 @@ export class Router {
return new Promise((resolvePromise, rejectPromise) => {
let updatedUrl: UrlTree;
let state: RouterState;
let navigationIsSuccessful;
let navigationIsSuccessful: boolean;
applyRedirects(url, this.config)
.mergeMap(u => {
updatedUrl = u;
@ -494,6 +494,7 @@ class ActivateRoutes {
const currRoot = this.currState ? this.currState._root : null;
pushQueryParamsAndFragment(this.futureState);
advanceActivatedRoute(this.futureState.root);
this.activateChildRoutes(futureRoot, currRoot, parentOutletMap);
}