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

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

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

ngSanitize.provider

Name Description $sanitizeProvider Creates and configures $sanitize instance.

ngMock.$log.log.logs

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

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

ngMock.$interval.flush()

flush([millis]); Runs interval tasks scheduled to be run in the next millis milliseconds. Parameters Param Type Details millis (optional) number maximum timeout amount to flush up until. Returns number The amount of time moved forward.

ngInclude.$includeContentError

$includeContentError Emitted when a template HTTP request yields an erroneous response (status < 200 || status > 299) Type: emit Target: the scope ngInclude was declared in Parameters Param Type Details angularEvent Object Synthetic event object. src String URL of content to load.

ngCookies.$cookies.getObject()

getObject(key); Returns the deserialized value of given cookie key Parameters Param Type Details key string Id to use for lookup. Returns Object Deserialized cookie value.

ngRequired

directive in module ng ngRequired adds the required validator to ngModel. It is most often used for input and select controls, but can also be applied to custom controls. The directive sets the required attribute on the element if the Angular expression inside ngRequired evaluates to true. A special directive for setting required is necessary because we cannot use interpolation inside required. See the interpolation guide for more info. The validator will set the required error key to true