@angular/router 12.0.0-rc.3 → 12.0.3
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 +16 -6
- 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 +3 -3
- package/esm2015/src/router.js +1 -1
- package/esm2015/src/router_config_loader.js +7 -2
- package/esm2015/src/router_state.js +5 -1
- package/esm2015/src/version.js +1 -1
- package/fesm2015/router.js +16 -6
- package/fesm2015/router.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm2015/upgrade.js +1 -1
- package/package.json +5 -8
- package/router.d.ts +25 -9
- 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.3
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
* ```
|
|
349
349
|
*
|
|
350
350
|
* @see `Event`
|
|
351
|
-
* @see [Router events summary](guide/router#router-events)
|
|
351
|
+
* @see [Router events summary](guide/router-reference#router-events)
|
|
352
352
|
* @publicApi
|
|
353
353
|
*/
|
|
354
354
|
var RouterEvent = /** @class */ (function () {
|
|
@@ -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);
|
|
@@ -4208,7 +4213,12 @@
|
|
|
4208
4213
|
*/
|
|
4209
4214
|
/**
|
|
4210
4215
|
* The [DI token](guide/glossary/#di-token) for a router configuration.
|
|
4211
|
-
*
|
|
4216
|
+
*
|
|
4217
|
+
* `ROUTES` is a low level API for router configuration via dependency injection.
|
|
4218
|
+
*
|
|
4219
|
+
* We recommend that in almost all cases to use higher level APIs such as `RouterModule.forRoot()`,
|
|
4220
|
+
* `RouterModule.forChild()`, `provideRoutes`, or `Router.resetConfig()`.
|
|
4221
|
+
*
|
|
4212
4222
|
* @publicApi
|
|
4213
4223
|
*/
|
|
4214
4224
|
var ROUTES = new core.InjectionToken('ROUTES');
|
|
@@ -6545,7 +6555,7 @@
|
|
|
6545
6555
|
/**
|
|
6546
6556
|
* @publicApi
|
|
6547
6557
|
*/
|
|
6548
|
-
var VERSION = new core.Version('12.0.
|
|
6558
|
+
var VERSION = new core.Version('12.0.3');
|
|
6549
6559
|
|
|
6550
6560
|
/**
|
|
6551
6561
|
* @license
|