@angular/router 4.4.3 → 4.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@angular/router/testing.es5.js +1 -1
- package/@angular/router/testing.js +1 -1
- package/@angular/router/upgrade.es5.js +1 -1
- package/@angular/router/upgrade.js +1 -1
- package/@angular/router.es5.js +16 -16
- package/@angular/router.es5.js.map +1 -1
- package/@angular/router.js +16 -16
- package/@angular/router.js.map +1 -1
- package/bundles/router-testing.umd.js +2 -2
- package/bundles/router-testing.umd.min.js +2 -2
- package/bundles/router-upgrade.umd.js +2 -2
- package/bundles/router-upgrade.umd.min.js +2 -2
- package/bundles/router.umd.js +17 -17
- package/bundles/router.umd.js.map +1 -1
- package/bundles/router.umd.min.js +10 -10
- package/bundles/router.umd.min.js.map +1 -1
- package/package.json +4 -4
- package/router.metadata.json +1 -1
- package/testing.d.ts +1 -1
- package/upgrade.d.ts +1 -1
package/@angular/router.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v4.4.
|
|
2
|
+
* @license Angular v4.4.7
|
|
3
3
|
* (c) 2010-2017 Google, Inc. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -5051,19 +5051,20 @@ class RouterLinkActive {
|
|
|
5051
5051
|
update() {
|
|
5052
5052
|
if (!this.links || !this.linksWithHrefs || !this.router.navigated)
|
|
5053
5053
|
return;
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5054
|
+
Promise.resolve().then(() => {
|
|
5055
|
+
const /** @type {?} */ hasActiveLinks = this.hasActiveLinks();
|
|
5056
|
+
if (this.active !== hasActiveLinks) {
|
|
5057
|
+
this.active = hasActiveLinks;
|
|
5058
|
+
this.classes.forEach((c) => {
|
|
5059
|
+
if (hasActiveLinks) {
|
|
5060
|
+
this.renderer.addClass(this.element.nativeElement, c);
|
|
5061
|
+
}
|
|
5062
|
+
else {
|
|
5063
|
+
this.renderer.removeClass(this.element.nativeElement, c);
|
|
5064
|
+
}
|
|
5065
|
+
});
|
|
5066
|
+
}
|
|
5067
|
+
});
|
|
5067
5068
|
}
|
|
5068
5069
|
/**
|
|
5069
5070
|
* @param {?} router
|
|
@@ -5495,7 +5496,6 @@ class RouterPreloader {
|
|
|
5495
5496
|
const onEndLoad = (r) => router.triggerEvent(new RouteConfigLoadEnd(r));
|
|
5496
5497
|
this.loader = new RouterConfigLoader(moduleLoader, compiler, onStartLoad, onEndLoad);
|
|
5497
5498
|
}
|
|
5498
|
-
;
|
|
5499
5499
|
/**
|
|
5500
5500
|
* @return {?}
|
|
5501
5501
|
*/
|
|
@@ -5977,7 +5977,7 @@ function provideRouterInitializer() {
|
|
|
5977
5977
|
/**
|
|
5978
5978
|
* \@stable
|
|
5979
5979
|
*/
|
|
5980
|
-
const VERSION = new Version('4.4.
|
|
5980
|
+
const VERSION = new Version('4.4.7');
|
|
5981
5981
|
|
|
5982
5982
|
/**
|
|
5983
5983
|
* @license
|