ngRoute.$route.reload()

reload(); Causes $route service to reload the current route even if $location hasn't changed. As a result of that, ngView creates new scope and reinstantiates the controller.

$compileProvider

$compile provider in module ng Methods directive(name, directiveFactory); Register a new directive with the compiler. Parameters Param Type Details name stringObject Name of the directive in camel-case (i.e. ngBind which will match as ng-bind), or an object map of directives where the keys are the names and the values are the factories. directiveFactory function()Array An injectable directive factory function. See the directive guide and the compile API for more info. Retu

ngBindHtml

directive in module ng Evaluates the expression and inserts the resulting HTML into the element in a secure way. By default, the resulting HTML content will be sanitized using the $sanitize service. To utilize this functionality, ensure that $sanitize is available, for example, by including ngSanitize in your module's dependencies (not in core Angular). In order to use ngSanitize in your module's dependencies, you need to include "angular-sanitize.js" in your application. You may also bypa

ngDisabled

directive in module ng This directive sets the disabled attribute on the element if the expression inside ngDisabled evaluates to truthy. A special directive is necessary because we cannot use interpolation inside the disabled attribute. See the interpolation guide for more info. Directive Info This directive executes at priority level 100. Usage as attribute: <INPUT ng-disabled="expression"> ... </INPUT> Arguments Param Type Details ngDisabled expression If the exp

angular.Module.run()

run(initializationFn); Use this method to register work which should be performed when the injector is done loading all modules. Parameters Param Type Details initializationFn Function Execute this function after injector creation. Useful for application initialization.

ngAria.provider

Name Description $ariaProvider Used for configuring the ARIA attributes injected and managed by ngAria.

ngTouch

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

ngMessages

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

Guide: Directives

Note: this guide is targeted towards developers who are already familiar with AngularJS basics. If you're just getting started, we recommend the tutorial first. If you're looking for the directives API, we recently moved it to $compile. This document explains when you'd want to create your own directives in your AngularJS app, and how to implement them. What are Directives? At a high level, directives are markers on a DOM element (such as an attribute, element name, comment or CSS class) t

ngRoute.$route.routes

routes Object Object with all route configuration Objects as its properties.