@angular/router
Advanced tools
Comparing version 3.1.0-rc.0 to 3.1.0
/** | ||
* @license Angular v3.1.0-rc.0 | ||
* @license Angular v3.1.0 | ||
* (c) 2010-2016 Google, Inc. https://angular.io/ | ||
@@ -86,3 +86,3 @@ * License: MIT | ||
* TestBed.configureTestModule({ | ||
* modules: [ | ||
* imports: [ | ||
* RouterTestingModule.withRoutes( | ||
@@ -89,0 +89,0 @@ * [{path: '', component: BlankCmp}, {path: 'simple', component: SimpleCmp}])] |
{ | ||
"name": "@angular/router", | ||
"version": "3.1.0-rc.0", | ||
"version": "3.1.0", | ||
"description": "Angular - the routing library", | ||
@@ -24,7 +24,7 @@ "main": "bundles/router.umd.js", | ||
"peerDependencies": { | ||
"@angular/core": "2.1.0-rc.0", | ||
"@angular/common": "2.1.0-rc.0", | ||
"@angular/platform-browser": "2.1.0-rc.0", | ||
"@angular/core": "2.1.0", | ||
"@angular/common": "2.1.0", | ||
"@angular/platform-browser": "2.1.0", | ||
"rxjs": "5.0.0-beta.12" | ||
} | ||
} |
@@ -89,3 +89,3 @@ /** | ||
ApplyRedirects.prototype.noMatchError = function (e) { | ||
return new Error("Cannot match any routes: '" + e.segmentGroup + "'"); | ||
return new Error("Cannot match any routes. URL Segment: '" + e.segmentGroup + "'"); | ||
}; | ||
@@ -178,3 +178,11 @@ ApplyRedirects.prototype.createUrlTree = function (rootCandidate) { | ||
if (route.path === '**') { | ||
return of(new UrlSegmentGroup(segments, {})); | ||
if (route.loadChildren) { | ||
return map.call(this.configLoader.load(injector, route.loadChildren), function (r) { | ||
route._loadedConfig = r; | ||
return of(new UrlSegmentGroup(segments, {})); | ||
}); | ||
} | ||
else { | ||
return of(new UrlSegmentGroup(segments, {})); | ||
} | ||
} | ||
@@ -181,0 +189,0 @@ else { |
@@ -95,3 +95,3 @@ /** | ||
* @Injectable() | ||
* class CanActivateTeam implements CanActivate { | ||
* class CanActivateTeam implements CanActivateChild { | ||
* constructor(private permissions: Permissions, private currentUser: UserToken) {} | ||
@@ -98,0 +98,0 @@ * |
@@ -12,2 +12,3 @@ /** | ||
import { of } from 'rxjs/observable/of'; | ||
import { concatMap } from 'rxjs/operator/concatMap'; | ||
import { every } from 'rxjs/operator/every'; | ||
@@ -550,3 +551,3 @@ import { map } from 'rxjs/operator/map'; | ||
var checks$ = from(this.checks); | ||
var runningChecks$ = mergeMap.call(checks$, function (s) { | ||
var runningChecks$ = concatMap.call(checks$, function (s) { | ||
if (s instanceof CanActivate) { | ||
@@ -553,0 +554,0 @@ return _this.runResolve(s.route); |
@@ -65,3 +65,3 @@ /** | ||
* TestBed.configureTestModule({ | ||
* modules: [ | ||
* imports: [ | ||
* RouterTestingModule.withRoutes( | ||
@@ -68,0 +68,0 @@ * [{path: '', component: BlankCmp}, {path: 'simple', component: SimpleCmp}])] |
@@ -83,3 +83,3 @@ /** | ||
* TestBed.configureTestModule({ | ||
* modules: [ | ||
* imports: [ | ||
* RouterTestingModule.withRoutes( | ||
@@ -86,0 +86,0 @@ * [{path: '', component: BlankCmp}, {path: 'simple', component: SimpleCmp}])] |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
810284
10902
2