@osovitny/anatoly 2.14.74 → 2.14.75

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.
@@ -95,6 +95,16 @@ class BaseGoService {
95
95
  homeReload() {
96
96
  window.location.href = "/";
97
97
  }
98
+ navigate(commands, reload = false) {
99
+ if (reload) {
100
+ this.router.navigate(commands).then(() => {
101
+ this.locationReload();
102
+ });
103
+ }
104
+ else {
105
+ this.router.navigate(commands);
106
+ }
107
+ }
98
108
  }
99
109
  BaseGoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseGoService, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
100
110
  BaseGoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseGoService });