MCPcopy Index your code
hub / github.com/angular/angular / destroyApp

Function destroyApp

packages/upgrade/src/common/src/util.ts:66–72  ·  view source on GitHub ↗
($injector: IInjectorService)

Source from the content-addressed store, hash-verified

64 * @param $injector The `$injector` of the AngularJS app to destroy.
65 */
66export 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
74export function directiveNormalize(name: string): string {
75 return name

Callers

nothing calls this directly

Calls 3

cleanDataFunction · 0.85
getMethod · 0.65
$destroyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…