Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 1 | 'use strict'; |
| 2 | import {IAppConfigurtaion} from "../models/app-config"; |
| 3 | |
| 4 | export 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 | |
| 23 | AngularJSBridge.$inject = ['$filter', 'sdcConfig'] |