blob: 1eaea878dda68b253988a489d7e817e1804bc2cf [file] [log] [blame]
Michael Landoed64b5e2017-06-09 03:19:04 +03001'use strict';
2import {IAppConfigurtaion} from "../models/app-config";
3
4export class AngularJSBridge {
5 private static _$filter:ng.IFilterService;
6 private static _sdcConfig:IAppConfigurtaion;
7
8 public static getFilter(filterName:string) {
9 return AngularJSBridge._$filter(filterName);
10 }
11
12 public static getAngularConfig() {
13 return AngularJSBridge._sdcConfig;
14 }
15
16
17 constructor($filter:ng.IFilterService, sdcConfig:IAppConfigurtaion) {
18 AngularJSBridge._$filter = $filter;
19 AngularJSBridge._sdcConfig = sdcConfig;
20 }
21}
22
23AngularJSBridge.$inject = ['$filter', 'sdcConfig']