@angular/router 12.0.1 → 12.0.2
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 -4
- package/bundles/router.umd.js.map +1 -1
- package/esm2015/src/apply_redirects.js +3 -2
- package/esm2015/src/config.js +1 -1
- package/esm2015/src/events.js +2 -2
- package/esm2015/src/router_state.js +5 -1
- package/esm2015/src/version.js +1 -1
- package/fesm2015/router.js +9 -4
- package/fesm2015/router.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm2015/upgrade.js +1 -1
- package/package.json +5 -5
- package/router.d.ts +15 -4
- 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.0.
|
|
2
|
+
* @license Angular v12.0.2
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
}(RouterEvent));
|
|
422
422
|
/**
|
|
423
423
|
* An event triggered when a navigation is canceled, directly or indirectly.
|
|
424
|
-
* This can happen when a route guard
|
|
424
|
+
* This can happen for several reasons including when a route guard
|
|
425
425
|
* returns `false` or initiates a redirect by returning a `UrlTree`.
|
|
426
426
|
*
|
|
427
427
|
* @see `NavigationStart`
|
|
@@ -1723,6 +1723,10 @@
|
|
|
1723
1723
|
* The following example shows how to construct a component using information from a
|
|
1724
1724
|
* currently activated route.
|
|
1725
1725
|
*
|
|
1726
|
+
* Note: the observables in this class only emit when the current and previous values differ based
|
|
1727
|
+
* on shallow equality. For example, changing deeply nested properties in resolved `data` will not
|
|
1728
|
+
* cause the `ActivatedRoute.data` `Observable` to emit a new value.
|
|
1729
|
+
*
|
|
1726
1730
|
* {@example router/activated-route/module.ts region="activated-route"
|
|
1727
1731
|
* header="activated-route.component.ts"}
|
|
1728
1732
|
*
|
|
@@ -3083,7 +3087,8 @@
|
|
|
3083
3087
|
}));
|
|
3084
3088
|
return urlTrees$.pipe(operators.catchError(function (e) {
|
|
3085
3089
|
if (e instanceof AbsoluteRedirect) {
|
|
3086
|
-
//
|
|
3090
|
+
// After an absolute redirect we do not apply any more redirects!
|
|
3091
|
+
// If this implementation changes, update the documentation note in `redirectTo`.
|
|
3087
3092
|
_this.allowRedirects = false;
|
|
3088
3093
|
// we need to run matching, so we can fetch all lazy-loaded modules
|
|
3089
3094
|
return _this.match(e.urlTree);
|
|
@@ -6545,7 +6550,7 @@
|
|
|
6545
6550
|
/**
|
|
6546
6551
|
* @publicApi
|
|
6547
6552
|
*/
|
|
6548
|
-
var VERSION = new core.Version('12.0.
|
|
6553
|
+
var VERSION = new core.Version('12.0.2');
|
|
6549
6554
|
|
|
6550
6555
|
/**
|
|
6551
6556
|
* @license
|