mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
Publish the application root element as $rootElement so that it can be injected to other services.
13 lines
549 B
JavaScript
13 lines
549 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* @ngdoc overview
|
|
* @name angular.module.ng.$rootElement
|
|
*
|
|
* @description
|
|
* The root element of Angular application. This is either the element where {@link
|
|
* angular.module.ng.$compileProvider.directive.ngApp ngApp} was declared or the element passed into
|
|
* {@link angular.bootstrap}. The element represent the root element of application. It is also the
|
|
* location where the applications {@link angular.module.AUTO.$injector $injector} service gets
|
|
* published, it can be retrieved using `$rootElement.injector()`.
|
|
*/
|