@angular/router 9.1.7 → 9.1.11
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-testing.umd.min.js +1 -1
- package/bundles/router-testing.umd.min.js.map +1 -1
- package/bundles/router-upgrade.umd.js +1 -1
- package/bundles/router-upgrade.umd.min.js +1 -1
- package/bundles/router-upgrade.umd.min.js.map +1 -1
- package/bundles/router.umd.js +24 -5
- package/bundles/router.umd.js.map +1 -1
- package/bundles/router.umd.min.js +2 -2
- package/bundles/router.umd.min.js.map +1 -1
- package/esm2015/src/config.js +2 -2
- package/esm2015/src/directives/router_link.js +99 -18
- package/esm2015/src/events.js +3 -3
- package/esm2015/src/version.js +1 -1
- package/esm5/src/config.js +1 -1
- package/esm5/src/directives/router_link.js +21 -2
- package/esm5/src/events.js +3 -3
- package/esm5/src/version.js +1 -1
- package/fesm2015/router.js +103 -22
- package/fesm2015/router.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm2015/upgrade.js +1 -1
- package/fesm5/router.js +24 -5
- package/fesm5/router.js.map +1 -1
- package/fesm5/testing.js +1 -1
- package/fesm5/upgrade.js +1 -1
- package/package.json +4 -4
- package/router.d.ts +96 -7
- 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/fesm2015/testing.js
CHANGED
package/fesm2015/upgrade.js
CHANGED
package/fesm5/router.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v9.1.
|
|
2
|
+
* @license Angular v9.1.11
|
|
3
3
|
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -27,8 +27,8 @@ import { map, concatAll, last as last$1, catchError, first, mergeMap, every, swi
|
|
|
27
27
|
* class MyService {
|
|
28
28
|
* constructor(public router: Router, logger: Logger) {
|
|
29
29
|
* router.events.pipe(
|
|
30
|
-
*
|
|
31
|
-
* ).subscribe(e => {
|
|
30
|
+
* filter((e: Event): e is RouterEvent => e instanceof RouterEvent)
|
|
31
|
+
* ).subscribe((e: RouterEvent) => {
|
|
32
32
|
* logger.log(e.id, e.url);
|
|
33
33
|
* });
|
|
34
34
|
* }
|
|
@@ -4624,6 +4624,14 @@ var RouterLink = /** @class */ (function () {
|
|
|
4624
4624
|
}
|
|
4625
4625
|
}
|
|
4626
4626
|
Object.defineProperty(RouterLink.prototype, "routerLink", {
|
|
4627
|
+
/**
|
|
4628
|
+
* @param commands An array of commands to pass to {@link Router#createUrlTree
|
|
4629
|
+
* Router#createUrlTree}.
|
|
4630
|
+
* - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
4631
|
+
* - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
|
|
4632
|
+
* - **null|undefined**: shorthand for an empty array of commands, i.e. `[]`
|
|
4633
|
+
* @see {@link Router#createUrlTree Router#createUrlTree}
|
|
4634
|
+
*/
|
|
4627
4635
|
set: function (commands) {
|
|
4628
4636
|
if (commands != null) {
|
|
4629
4637
|
this.commands = Array.isArray(commands) ? commands : [commands];
|
|
@@ -4637,7 +4645,7 @@ var RouterLink = /** @class */ (function () {
|
|
|
4637
4645
|
});
|
|
4638
4646
|
Object.defineProperty(RouterLink.prototype, "preserveQueryParams", {
|
|
4639
4647
|
/**
|
|
4640
|
-
* @deprecated
|
|
4648
|
+
* @deprecated As of Angular v4.0 use `queryParamsHandling` instead.
|
|
4641
4649
|
*/
|
|
4642
4650
|
set: function (value) {
|
|
4643
4651
|
if (isDevMode() && console && console.warn) {
|
|
@@ -4747,6 +4755,14 @@ var RouterLinkWithHref = /** @class */ (function () {
|
|
|
4747
4755
|
});
|
|
4748
4756
|
}
|
|
4749
4757
|
Object.defineProperty(RouterLinkWithHref.prototype, "routerLink", {
|
|
4758
|
+
/**
|
|
4759
|
+
* @param commands An array of commands to pass to {@link Router#createUrlTree
|
|
4760
|
+
* Router#createUrlTree}.
|
|
4761
|
+
* - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
4762
|
+
* - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
|
|
4763
|
+
* - **null|undefined**: shorthand for an empty array of commands, i.e. `[]`
|
|
4764
|
+
* @see {@link Router#createUrlTree Router#createUrlTree}
|
|
4765
|
+
*/
|
|
4750
4766
|
set: function (commands) {
|
|
4751
4767
|
if (commands != null) {
|
|
4752
4768
|
this.commands = Array.isArray(commands) ? commands : [commands];
|
|
@@ -4759,6 +4775,9 @@ var RouterLinkWithHref = /** @class */ (function () {
|
|
|
4759
4775
|
configurable: true
|
|
4760
4776
|
});
|
|
4761
4777
|
Object.defineProperty(RouterLinkWithHref.prototype, "preserveQueryParams", {
|
|
4778
|
+
/**
|
|
4779
|
+
* @deprecated As of Angular v4.0 use `queryParamsHandling` instead.
|
|
4780
|
+
*/
|
|
4762
4781
|
set: function (value) {
|
|
4763
4782
|
if (isDevMode() && console && console.warn) {
|
|
4764
4783
|
console.warn('preserveQueryParams is deprecated, use queryParamsHandling instead.');
|
|
@@ -5878,7 +5897,7 @@ function provideRouterInitializer() {
|
|
|
5878
5897
|
/**
|
|
5879
5898
|
* @publicApi
|
|
5880
5899
|
*/
|
|
5881
|
-
var VERSION = new Version('9.1.
|
|
5900
|
+
var VERSION = new Version('9.1.11');
|
|
5882
5901
|
|
|
5883
5902
|
/**
|
|
5884
5903
|
* @license
|