ngComponentRouter.type

Name Description Router A Router is responsible for mapping URLs to components. ChildRouter This type extends the Router. RootRouter This type extends the Router. ComponentInstruction A ComponentInstruction represents the route state for a single component. An Instruction is composed of a tree of these ComponentInstructions. RouteDefinition Each item in a the RouteConfig for a Routing Component is an instance of this type. It can have the following properties: RouteParams A map of pa

ngSanitize.service

Name Description $sanitize Sanitizes an html string by stripping all potentially dangerous tokens.

ngModel.NgModelController.$dirty

$dirty boolean True if user has already interacted with the control.

form.FormController.$pending

$pending boolean True if at least one containing control or form is pending.

ngMock.$log.log.logs

log.logs Array of messages logged using log().

$rootElement

service in module ng The root element of Angular application. This is either the element where ngApp was declared or the element passed into angular.bootstrap. The element represents the root element of application. It is also the location where the application's $injector service gets published, and can be retrieved using $rootElement.injector().

ngRoute

Installation First include angular-route.js in your HTML: <script src="angular.js"> <script src="angular-route.js"> You can download this file from the following places: Google CDN e.g. //ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/angular-route.js Bower e.g. bower install angular-route@X.Y.Z code.angularjs.org e.g. "//code.angularjs.org/X.Y.Z/angular-route.js" where X.Y.Z is the AngularJS version you are running. Then load the module in your application by adding it as a

ngSanitize.provider

Name Description $sanitizeProvider Creates and configures $sanitize instance.

auto.$injector.instantiate()

instantiate(Type, [locals]); Create a new instance of JS type. The method takes a constructor function, invokes the new operator, and supplies all of the arguments to the constructor function as specified by the constructor annotation. Parameters Param Type Details Type Function Annotated constructor function. locals (optional) Object Optional object. If preset then any argument names are read from this object first, before the $injector is consulted. Returns Object new instanc

$rootScope.Scope.$destroy()

$destroy(); Removes the current scope (and all of its children) from the parent scope. Removal implies that calls to $digest() will no longer propagate to the current scope and its children. Removal also implies that the current scope is eligible for garbage collection. The $destroy() is usually used by directives such as ngRepeat for managing the unrolling of the loop. Just before a scope is destroyed, a $destroy event is broadcasted on this scope. Application code can register a $destroy eve