$rootScope.Scope.$watch()

$watch(watchExpression, listener, [objectEquality]); Registers a listener callback to be executed whenever the watchExpression changes. The watchExpression is called on every call to $digest() and should return the value that will be watched. (watchExpression should not change its value when executed multiple times with the same input because it may be executed multiple times by $digest(). That is, watchExpression should be idempotent. The listener is called only when the value from the curren

select.SelectController

type in module ng The controller for the <select> directive. This provides support for reading and writing the selected value(s) of the control and also coordinates dynamically added <option> elements, perhaps by an ngRepeat directive.

ngModel.NgModelController.$untouched

$untouched boolean True if control has not lost focus yet.

ngRoute.$route.routes

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

ngMock.angular.mock

object in module ngMock Namespace from 'angular-mocks.js' which contains testing related code.

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

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

ngApp

directive in module ng Use this directive to auto-bootstrap an AngularJS application. The ngApp directive designates the root element of the application and is typically placed near the root element of the page - e.g. on the <body> or <html> tags. There are a few things to keep in mind when using ngApp: only one AngularJS application can be auto-bootstrapped per HTML document. The first ngApp found in the document will be used to define the root element to auto-bootstrap as an

ngMessages.ngMessagesInclude

directive in module ngMessages ngMessagesInclude is a directive with the purpose to import existing ngMessage template code from a remote template and place the downloaded template code into the exact spot that the ngMessagesInclude directive is placed within the ngMessages container. This allows for a series of pre-defined messages to be reused and also allows for the developer to determine what messages are overridden due to the placement of the ngMessagesInclude directive. Directive I