()
| 17 | tempInjectorRef = injector; |
| 18 | } |
| 19 | export function injectorFactory() { |
| 20 | if (!tempInjectorRef) { |
| 21 | throw new Error('Trying to get the AngularJS injector before it being set.'); |
| 22 | } |
| 23 | |
| 24 | const injector: IInjectorService = tempInjectorRef; |
| 25 | tempInjectorRef = null; // clear the value to prevent memory leaks |
| 26 | return injector; |
| 27 | } |
| 28 | |
| 29 | export function rootScopeFactory(i: IInjectorService) { |
| 30 | return i.get('$rootScope'); |
no outgoing calls
no test coverage detected
searching dependent graphs…