aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/services/angular-js-bridge-service.ts
blob: 1eaea878dda68b253988a489d7e817e1804bc2cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'use strict';
import {IAppConfigurtaion} from "../models/app-config";

export class AngularJSBridge {
    private static _$filter:ng.IFilterService;
    private static _sdcConfig:IAppConfigurtaion;

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

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


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

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