@angular/router 12.2.0 → 12.2.1
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/bundles/router-testing.umd.js +1 -1
- package/bundles/router-upgrade.umd.js +1 -1
- package/bundles/router.umd.js +9 -3
- package/bundles/router.umd.js.map +1 -1
- package/esm2015/src/directives/router_link_active.js +8 -2
- package/esm2015/src/version.js +1 -1
- package/fesm2015/router.js +9 -3
- package/fesm2015/router.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm2015/upgrade.js +1 -1
- package/package.json +4 -4
- package/router.d.ts +1 -1
- package/router.metadata.json +1 -1
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
- package/upgrade/upgrade.d.ts +1 -1
- package/upgrade.d.ts +1 -1
package/bundles/router.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v12.2.
|
|
2
|
+
* @license Angular v12.2.1
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -5889,7 +5889,7 @@
|
|
|
5889
5889
|
});
|
|
5890
5890
|
};
|
|
5891
5891
|
RouterLinkActive.prototype.isLinkActive = function (router) {
|
|
5892
|
-
var options =
|
|
5892
|
+
var options = isActiveMatchOptions(this.routerLinkActiveOptions) ?
|
|
5893
5893
|
this.routerLinkActiveOptions :
|
|
5894
5894
|
// While the types should disallow `undefined` here, it's possible without strict inputs
|
|
5895
5895
|
(this.routerLinkActiveOptions.exact || false);
|
|
@@ -5923,6 +5923,12 @@
|
|
|
5923
5923
|
routerLinkActiveOptions: [{ type: core.Input }],
|
|
5924
5924
|
routerLinkActive: [{ type: core.Input }]
|
|
5925
5925
|
};
|
|
5926
|
+
/**
|
|
5927
|
+
* Use instead of `'paths' in options` to be compatible with property renaming
|
|
5928
|
+
*/
|
|
5929
|
+
function isActiveMatchOptions(options) {
|
|
5930
|
+
return !!options.paths;
|
|
5931
|
+
}
|
|
5926
5932
|
|
|
5927
5933
|
/**
|
|
5928
5934
|
* @license
|
|
@@ -6727,7 +6733,7 @@
|
|
|
6727
6733
|
/**
|
|
6728
6734
|
* @publicApi
|
|
6729
6735
|
*/
|
|
6730
|
-
var VERSION = new core.Version('12.2.
|
|
6736
|
+
var VERSION = new core.Version('12.2.1');
|
|
6731
6737
|
|
|
6732
6738
|
/**
|
|
6733
6739
|
* @license
|