test(router): add a test checking that guards work for child routes

This commit is contained in:
vsavkin
2016-06-15 15:45:42 -07:00
parent 9a67f38728
commit cdbf67ee05
3 changed files with 40 additions and 5 deletions

View File

@ -345,6 +345,7 @@ class GuardChecks {
const currRoot = this.curr ? this.curr._root : null;
this.traverseChildRoutes(futureRoot, currRoot, parentOutletMap);
if (this.checks.length === 0) return of (true);
return Observable.from(this.checks)
.map(s => {
if (s instanceof CanActivate) {