Function
destroyApp
($injector: IInjectorService)
Source from the content-addressed store, hash-verified
| 64 | * @param $injector The `$injector` of the AngularJS app to destroy. |
| 65 | */ |
| 66 | export function destroyApp($injector: IInjectorService): void { |
| 67 | const $rootElement: IAugmentedJQuery = $injector.get($ROOT_ELEMENT); |
| 68 | const $rootScope: IRootScopeService = $injector.get($ROOT_SCOPE); |
| 69 | |
| 70 | $rootScope.$destroy(); |
| 71 | cleanData($rootElement[0]); |
| 72 | } |
| 73 | |
| 74 | export function directiveNormalize(name: string): string { |
| 75 | return name |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…