You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1.5 KiB
1 lines
1.5 KiB
{"ast":null,"code":"import { Subject } from 'rxjs';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nexport let RouterService = /*#__PURE__*/(() => {\n class RouterService {\n constructor(_router) {\n this._router = _router;\n this._stateChanges = new Subject();\n this.selectedTab = '';\n this.previousPage = '';\n }\n\n setSelectedTab(str) {\n this.selectedTab = str;\n }\n\n getSelectedTab() {\n return this.selectedTab;\n }\n\n navigate(route) {\n // **\n // Note: replaceUrl is used in future by us to replace the urlParams based on the route\n // **\n this._router.navigateByUrl(route, {\n replaceUrl: true\n });\n }\n\n navigateRelatively(route) {\n this._router.navigate([route], {\n relativeTo: this._router.routerState.root.firstChild\n });\n }\n\n navigateBack() {\n window.history.back();\n }\n\n get previousRoute() {\n return RouterService.previousRoute;\n }\n\n get currentRoute() {\n return RouterService.currentRoute;\n }\n\n get stateChanges() {\n return this._stateChanges.asObservable();\n }\n\n }\n\n RouterService.ɵfac = function RouterService_Factory(t) {\n return new (t || RouterService)(i0.ɵɵinject(i1.Router));\n };\n\n RouterService.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: RouterService,\n factory: RouterService.ɵfac\n });\n return RouterService;\n})();","map":null,"metadata":{},"sourceType":"module"}
|