ngModel.NgModelController.$viewChangeListeners

$viewChangeListeners Array.<Function> Array of functions to execute whenever the view value has changed. It is called with no arguments, and its return value is ignored. This can be used in place of additional $watches against the model value.

ngMousedown

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

ngSrcset

directive in module ng Using Angular markup like {{hash}} in a srcset attribute doesn't work right: The browser will fetch from the URL with the literal text {{hash}} until Angular replaces the expression inside {{hash}}. The ngSrcset directive solves this problem. The buggy way to write it: <img srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description"/> The correct way to write it: <img ng-srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description" />

ngReadonly

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

ngCookies.$cookies.putObject()

putObject(key, value, [options]); Serializes and sets a value for given cookie key Parameters Param Type Details key string Id for the value. value Object Value to be stored. options (optional) Object Options object. See $cookiesProvider.defaults

ngCookies.$cookieStore.put()

put(key, value); Sets a value for given cookie key Parameters Param Type Details key string Id for the value. value Object Value to be stored.

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.

$location.path()

path([path]); This method is getter / setter. Return path of current url when called without any parameter. Change path when called with parameter and return $location. Note: Path should always begin with forward slash (/), this method will add the forward slash if it is missing. // given url http://example.com/#/some/path?foo=bar&baz=xoxo var path = $location.path(); // => "/some/path" Parameters Param Type Details path (optional) stringnumber New path Returns string path

ngRoute.$route.$routeChangeError

$routeChangeError Broadcasted if any of the resolve promises are rejected. Type: broadcast Target: root scope Parameters Param Type Details angularEvent Object Synthetic event object current Route Current route information. previous Route Previous route information. rejection Route Rejection of the promise. Usually the error of the failed promise.

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.