summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/utils/ng1-upgraded-provider.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/ng2/utils/ng1-upgraded-provider.ts')
-rw-r--r--catalog-ui/src/app/ng2/utils/ng1-upgraded-provider.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/catalog-ui/src/app/ng2/utils/ng1-upgraded-provider.ts b/catalog-ui/src/app/ng2/utils/ng1-upgraded-provider.ts
index ce13a8c235..c21817c001 100644
--- a/catalog-ui/src/app/ng2/utils/ng1-upgraded-provider.ts
+++ b/catalog-ui/src/app/ng2/utils/ng1-upgraded-provider.ts
@@ -42,6 +42,10 @@ export function cookieServiceFactory(cacheObj: ICacheObject) {
return cacheObj.get('Sdc.Services.CookieService');
}
+export function stateServiceFactory(cacheObj: ICacheObject) {
+ return cacheObj.get('$state');
+}
+
export function stateParamsServiceFactory(cacheObj: ICacheObject) {
return cacheObj.get('$stateParams');
}
@@ -74,6 +78,12 @@ export const CookieServiceProvider = {
deps: ['$injector']
};
+export const StateServiceFactory = {
+ provide: '$state',
+ useFactory: stateServiceFactory,
+ deps: ['$injector']
+};
+
export const StateParamsServiceFactory = {
provide: '$stateParams',
useFactory: stateParamsServiceFactory,