@angular/router 12.0.3 → 12.0.4

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.0.3
2
+ * @license Angular v12.0.4
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.0.3
2
+ * @license Angular v12.0.4
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.0.3
2
+ * @license Angular v12.0.4
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1339,12 +1339,14 @@
1339
1339
  .join('');
1340
1340
  }
1341
1341
  function serializeQueryParams(params) {
1342
- var strParams = Object.keys(params).map(function (name) {
1342
+ var strParams = Object.keys(params)
1343
+ .map(function (name) {
1343
1344
  var value = params[name];
1344
1345
  return Array.isArray(value) ?
1345
1346
  value.map(function (v) { return encodeUriQuery(name) + "=" + encodeUriQuery(v); }).join('&') :
1346
1347
  encodeUriQuery(name) + "=" + encodeUriQuery(value);
1347
- });
1348
+ })
1349
+ .filter(function (s) { return !!s; });
1348
1350
  return strParams.length ? "?" + strParams.join('&') : '';
1349
1351
  }
1350
1352
  var SEGMENT_RE = /^[^\/()?;=#]+/;
@@ -4502,8 +4504,16 @@
4502
4504
  this.routeReuseStrategy = new DefaultRouteReuseStrategy();
4503
4505
  /**
4504
4506
  * How to handle a navigation request to the current URL. One of:
4507
+ *
4505
4508
  * - `'ignore'` : The router ignores the request.
4506
4509
  * - `'reload'` : The router reloads the URL. Use to implement a "refresh" feature.
4510
+ *
4511
+ * Note that this only configures whether the Route reprocesses the URL and triggers related
4512
+ * action and events like redirects, guards, and resolvers. By default, the router re-uses a
4513
+ * component instance when it re-navigates to the same component type without visiting a different
4514
+ * component first. This behavior is configured by the `RouteReuseStrategy`. In order to reload
4515
+ * routed components on same url navigation, you need to set `onSameUrlNavigation` to `'reload'`
4516
+ * _and_ provide a `RouteReuseStrategy` which returns `false` for `shouldReuseRoute`.
4507
4517
  */
4508
4518
  this.onSameUrlNavigation = 'ignore';
4509
4519
  /**
@@ -6555,7 +6565,7 @@
6555
6565
  /**
6556
6566
  * @publicApi
6557
6567
  */
6558
- var VERSION = new core.Version('12.0.3');
6568
+ var VERSION = new core.Version('12.0.4');
6559
6569
 
6560
6570
  /**
6561
6571
  * @license