@ts-core/angular 11.0.82 → 11.0.83

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.
@@ -10424,6 +10424,7 @@
10424
10424
  var _this = this;
10425
10425
  this.router.events.pipe(operators.takeUntil(this.destroyed)).subscribe(function (event) {
10426
10426
  if (event instanceof router.NavigationStart) {
10427
+ _this._previousUrl = _this.url;
10427
10428
  _this.status = common.LoadableStatus.LOADING;
10428
10429
  }
10429
10430
  else if (event instanceof router.NavigationEnd || event instanceof router.NavigationCancel || event instanceof router.NavigationError) {
@@ -10468,7 +10469,7 @@
10468
10469
  this.isNeedUpdateExtras = false;
10469
10470
  this.applyExtras(this.extrasToApply);
10470
10471
  }
10471
- this.observer.next(new observer.ObservableData(common.LoadableEvent.COMPLETE, { url: this.url, lastUrl: this.lastUrl }));
10472
+ this.observer.next(new observer.ObservableData(common.LoadableEvent.COMPLETE, { url: this.url, previousUrl: this.previousUrl }));
10472
10473
  break;
10473
10474
  }
10474
10475
  if (newStatus === common.LoadableStatus.LOADED || newStatus === common.LoadableStatus.ERROR) {
@@ -10614,16 +10615,16 @@
10614
10615
  enumerable: false,
10615
10616
  configurable: true
10616
10617
  });
10617
- Object.defineProperty(RouterBaseService.prototype, "lastUrl", {
10618
+ Object.defineProperty(RouterBaseService.prototype, "urlTree", {
10618
10619
  get: function () {
10619
- return this._lastUrl;
10620
+ return this.router.parseUrl(this.url);
10620
10621
  },
10621
10622
  enumerable: false,
10622
10623
  configurable: true
10623
10624
  });
10624
- Object.defineProperty(RouterBaseService.prototype, "urlTree", {
10625
+ Object.defineProperty(RouterBaseService.prototype, "lastUrl", {
10625
10626
  get: function () {
10626
- return this.router.parseUrl(this.url);
10627
+ return this._lastUrl;
10627
10628
  },
10628
10629
  enumerable: false,
10629
10630
  configurable: true
@@ -10635,6 +10636,20 @@
10635
10636
  enumerable: false,
10636
10637
  configurable: true
10637
10638
  });
10639
+ Object.defineProperty(RouterBaseService.prototype, "previousUrl", {
10640
+ get: function () {
10641
+ return this._previousUrl;
10642
+ },
10643
+ enumerable: false,
10644
+ configurable: true
10645
+ });
10646
+ Object.defineProperty(RouterBaseService.prototype, "previousUrlTree", {
10647
+ get: function () {
10648
+ return this.router.parseUrl(this.previousUrl);
10649
+ },
10650
+ enumerable: false,
10651
+ configurable: true
10652
+ });
10638
10653
  Object.defineProperty(RouterBaseService.prototype, "router", {
10639
10654
  get: function () {
10640
10655
  return this._router;