ngHref

directive in module ng Using Angular markup like {{hash}} in an href attribute will make the link go to the wrong URL if the user clicks it before Angular has a chance to replace the {{hash}} markup with its value. Until Angular replaces the markup the link will be broken and will most likely return a 404 error. The ngHref directive solves this problem. The wrong way to write it: <a href="http://www.gravatar.com/avatar/{{hash}}">link1</a> The correct way to write it: <a ng-

ngFocus

directive in module ng Specify custom behavior on focus event. Note: As the focus event is executed synchronously when calling input.focus() AngularJS executes the expression using scope.$evalAsync if the event is fired during an $apply to ensure a consistent state. Directive Info This directive executes at priority level 0. Usage as attribute: <window, input, select, textarea, a ng-focus="expression"> ... </window, input, select, textarea, a> Arguments Param Type Detail

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

ngDblclick

directive in module ng The ngDblclick directive allows you to specify custom behavior on a dblclick event. Directive Info This directive executes at priority level 0. Usage as attribute: <ANY ng-dblclick="expression"> ... </ANY> Arguments Param Type Details ngDblclick expression Expression to evaluate upon a dblclick. (The Event object is available as $event)

ngCsp

directive in module ng Angular has some features that can break certain CSP (Content Security Policy) rules. If you intend to implement these rules then you must tell Angular not to use these features. This is necessary when developing things like Google Chrome Extensions or Universal Windows Apps. The following rules affect Angular: unsafe-eval: this rule forbids apps to use eval or Function(string) generated functions (among other things). Angular makes use of this in the $parse service

ngCookies.service

Name Description $cookieStore Provides a key-value (string-object) storage, that is backed by session cookies. Objects put or retrieved from this storage are automatically serialized or deserialized by angular's toJson/fromJson. $cookies Provides read/write access to browser's cookies.

ngCopy

directive in module ng Specify custom behavior on copy event. Directive Info This directive executes at priority level 0. Usage as attribute: <window, input, select, textarea, a ng-copy="expression"> ... </window, input, select, textarea, a> Arguments Param Type Details ngCopy expression Expression to evaluate upon copy. (Event object is available as $event)

ngCookies.provider

Name Description $cookiesProvider Use $cookiesProvider to change the default behavior of the $cookies service.

ngCut

directive in module ng Specify custom behavior on cut event. Directive Info This directive executes at priority level 0. Usage as attribute: <window, input, select, textarea, a ng-cut="expression"> ... </window, input, select, textarea, a> Arguments Param Type Details ngCut expression Expression to evaluate upon cut. (Event object is available as $event)

ngCookies.$cookiesProvider

$cookies provider in module ngCookies Use $cookiesProvider to change the default behavior of the $cookies service. Properties defaults Object containing default options to pass when setting cookies. The object may have following properties: path - {string} - The cookie will be available only for this path and its sub-paths. By default, this is the URL that appears in your <base> tag. domain - {string} - The cookie will be available only for this domain and its sub-domains. F