summaryrefslogtreecommitdiffstats
path: root/catalog-ui/app/scripts/services/angular-js-bridge-service.ts
blob: 2d8fb01b132cd0a2263731abc859e3c3b0e80e1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module Sdc.Services {
    export class AngularJSBridge{
        private static _$filter: ng.IFilterService;
        private static _sdcConfig: Models.IAppConfigurtaion;

        public static getFilter(filterName: string){
            return AngularJSBridge._$filter(filterName);
        }

        public static getAngularConfig(){
            return AngularJSBridge._sdcConfig;
        }


        constructor($filter: ng.IFilterService, sdcConfig: Models.IAppConfigurtaion){
            AngularJSBridge._$filter = $filter;
            AngularJSBridge._sdcConfig = sdcConfig;
        }
    }

    AngularJSBridge.$inject = ['$filter', 'sdcConfig']
}