@angular/router 12.2.8 → 12.2.12
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 -6
- package/bundles/router.umd.js.map +1 -1
- package/esm2015/src/router.js +7 -5
- package/esm2015/src/router_outlet_context.js +2 -1
- package/esm2015/src/version.js +1 -1
- package/fesm2015/router.js +9 -6
- 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.12
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -4334,6 +4334,7 @@
|
|
|
4334
4334
|
var context = this.getContext(childName);
|
|
4335
4335
|
if (context) {
|
|
4336
4336
|
context.outlet = null;
|
|
4337
|
+
context.attachRef = null;
|
|
4337
4338
|
}
|
|
4338
4339
|
};
|
|
4339
4340
|
/**
|
|
@@ -4821,6 +4822,7 @@
|
|
|
4821
4822
|
completed = true;
|
|
4822
4823
|
}
|
|
4823
4824
|
}), operators.finalize(function () {
|
|
4825
|
+
var _a;
|
|
4824
4826
|
/* When the navigation stream finishes either through error or success, we
|
|
4825
4827
|
* set the `completed` or `errored` flag. However, there are some situations
|
|
4826
4828
|
* where we could get here without either of those being set. For instance, a
|
|
@@ -4853,10 +4855,11 @@
|
|
|
4853
4855
|
// id.
|
|
4854
4856
|
}
|
|
4855
4857
|
}
|
|
4856
|
-
//
|
|
4857
|
-
//
|
|
4858
|
-
|
|
4859
|
-
|
|
4858
|
+
// Only clear current navigation if it is still set to the one that
|
|
4859
|
+
// finalized.
|
|
4860
|
+
if (((_a = _this.currentNavigation) === null || _a === void 0 ? void 0 : _a.id) === t.id) {
|
|
4861
|
+
_this.currentNavigation = null;
|
|
4862
|
+
}
|
|
4860
4863
|
}), operators.catchError(function (e) {
|
|
4861
4864
|
// TODO(atscott): The NavigationTransition `t` used here does not accurately
|
|
4862
4865
|
// reflect the current state of the whole transition because some operations
|
|
@@ -6766,7 +6769,7 @@
|
|
|
6766
6769
|
/**
|
|
6767
6770
|
* @publicApi
|
|
6768
6771
|
*/
|
|
6769
|
-
var VERSION = new core.Version('12.2.
|
|
6772
|
+
var VERSION = new core.Version('12.2.12');
|
|
6770
6773
|
|
|
6771
6774
|
/**
|
|
6772
6775
|
* @license
|