@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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v4.4.3
2
+ * @license Angular v4.4.7
3
3
  * (c) 2010-2017 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -10,7 +10,7 @@
10
10
  }(this, (function (exports,_angular_common,_angular_common_testing,_angular_core,_angular_router) { 'use strict';
11
11
 
12
12
  /**
13
- * @license Angular v4.4.3
13
+ * @license Angular v4.4.7
14
14
  * (c) 2010-2017 Google, Inc. https://angular.io/
15
15
  * License: MIT
16
16
  */
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Angular v4.4.3
2
+ * @license Angular v4.4.7
3
3
  * (c) 2010-2017 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
  !function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("@angular/common"),require("@angular/common/testing"),require("@angular/core"),require("@angular/router")):"function"==typeof define&&define.amd?define(["exports","@angular/common","@angular/common/testing","@angular/core","@angular/router"],factory):factory((global.ng=global.ng||{},global.ng.router=global.ng.router||{},global.ng.router.testing=global.ng.router.testing||{}),global.ng.common,global.ng.common.testing,global.ng.core,global.ng.router)}(this,function(exports,_angular_common,_angular_common_testing,_angular_core,_angular_router){"use strict";function setupTestingRouter(urlSerializer,contexts,location,loader,compiler,injector,routes,urlHandlingStrategy){var router=new _angular_router.Router(null,urlSerializer,contexts,location,injector,loader,compiler,_angular_router.ɵflatten(routes));return urlHandlingStrategy&&(router.urlHandlingStrategy=urlHandlingStrategy),router}/**
7
- * @license Angular v4.4.3
7
+ * @license Angular v4.4.7
8
8
  * (c) 2010-2017 Google, Inc. https://angular.io/
9
9
  * License: MIT
10
10
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v4.4.3
2
+ * @license Angular v4.4.7
3
3
  * (c) 2010-2017 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -10,7 +10,7 @@
10
10
  }(this, (function (exports,_angular_core,_angular_router,_angular_upgrade_static) { 'use strict';
11
11
 
12
12
  /**
13
- * @license Angular v4.4.3
13
+ * @license Angular v4.4.7
14
14
  * (c) 2010-2017 Google, Inc. https://angular.io/
15
15
  * License: MIT
16
16
  */
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Angular v4.4.3
2
+ * @license Angular v4.4.7
3
3
  * (c) 2010-2017 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
  !function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("@angular/core"),require("@angular/router"),require("@angular/upgrade/static")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/router","@angular/upgrade/static"],factory):factory((global.ng=global.ng||{},global.ng.router=global.ng.router||{},global.ng.router.upgrade=global.ng.router.upgrade||{}),global.ng.core,global.ng.router,global.ng.upgrade.static)}(this,function(exports,_angular_core,_angular_router,_angular_upgrade_static){"use strict";function locationSyncBootstrapListener(ngUpgrade){return function(){setUpLocationSync(ngUpgrade)}}function setUpLocationSync(ngUpgrade){if(!ngUpgrade.$injector)throw new Error("\n RouterUpgradeInitializer can be used only after UpgradeModule.bootstrap has been called.\n Remove RouterUpgradeInitializer and call setUpLocationSync after UpgradeModule.bootstrap.\n ");var router=ngUpgrade.injector.get(_angular_router.Router),url=document.createElement("a");ngUpgrade.$injector.get("$rootScope").$on("$locationChangeStart",function(_,next,__){url.href=next,router.navigateByUrl(url.pathname+url.search+url.hash)})}/**
7
- * @license Angular v4.4.3
7
+ * @license Angular v4.4.7
8
8
  * (c) 2010-2017 Google, Inc. https://angular.io/
9
9
  * License: MIT
10
10
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v4.4.3
2
+ * @license Angular v4.4.7
3
3
  * (c) 2010-2017 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -36,7 +36,7 @@ function __extends(d, b) {
36
36
  }
37
37
 
38
38
  /**
39
- * @license Angular v4.4.3
39
+ * @license Angular v4.4.7
40
40
  * (c) 2010-2017 Google, Inc. https://angular.io/
41
41
  * License: MIT
42
42
  */
@@ -5298,19 +5298,20 @@ var RouterLinkActive = (function () {
5298
5298
  var _this = this;
5299
5299
  if (!this.links || !this.linksWithHrefs || !this.router.navigated)
5300
5300
  return;
5301
- var /** @type {?} */ hasActiveLinks = this.hasActiveLinks();
5302
- // react only when status has changed to prevent unnecessary dom updates
5303
- if (this.active !== hasActiveLinks) {
5304
- this.classes.forEach(function (c) {
5305
- if (hasActiveLinks) {
5306
- _this.renderer.addClass(_this.element.nativeElement, c);
5307
- }
5308
- else {
5309
- _this.renderer.removeClass(_this.element.nativeElement, c);
5310
- }
5311
- });
5312
- Promise.resolve(hasActiveLinks).then(function (active) { return _this.active = active; });
5313
- }
5301
+ Promise.resolve().then(function () {
5302
+ var /** @type {?} */ hasActiveLinks = _this.hasActiveLinks();
5303
+ if (_this.active !== hasActiveLinks) {
5304
+ _this.active = hasActiveLinks;
5305
+ _this.classes.forEach(function (c) {
5306
+ if (hasActiveLinks) {
5307
+ _this.renderer.addClass(_this.element.nativeElement, c);
5308
+ }
5309
+ else {
5310
+ _this.renderer.removeClass(_this.element.nativeElement, c);
5311
+ }
5312
+ });
5313
+ }
5314
+ });
5314
5315
  };
5315
5316
  /**
5316
5317
  * @param {?} router
@@ -5778,7 +5779,6 @@ var RouterPreloader = (function () {
5778
5779
  var onEndLoad = function (r) { return router.triggerEvent(new RouteConfigLoadEnd(r)); };
5779
5780
  this.loader = new RouterConfigLoader(moduleLoader, compiler, onStartLoad, onEndLoad);
5780
5781
  }
5781
-
5782
5782
  /**
5783
5783
  * @return {?}
5784
5784
  */
@@ -6268,7 +6268,7 @@ function provideRouterInitializer() {
6268
6268
  /**
6269
6269
  * \@stable
6270
6270
  */
6271
- var VERSION = new _angular_core.Version('4.4.3');
6271
+ var VERSION = new _angular_core.Version('4.4.7');
6272
6272
 
6273
6273
  exports.RouterLink = RouterLink;
6274
6274
  exports.RouterLinkWithHref = RouterLinkWithHref;