ngTouch.directive

Name Description ngClick DEPRECATION NOTICE: Beginning with Angular 1.5, this directive is deprecated and by default disabled. The directive will receive no further support and might be removed from future releases. If you need the directive, you can enable it with the $touchProvider#ngClickOverrideEnabled function. We also recommend that you migrate to FastClick. To learn more about the 300ms delay, this Telerik article gives a good overview. A more powerful replacement for the default ngC

ngOpen

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

$window

service in module ng A reference to the browser's window object. While window is globally available in JavaScript, it causes testability problems, because it is a global variable. In angular we always refer to it through the $window service, so it may be overridden, removed or mocked for testing. Expressions, like the one defined for the ngClick directive in the example below, are evaluated with respect to the current scope. Therefore, there is no risk of inadvertently coding in a dependen

$http.pendingRequests

pendingRequests Array.<Object> Array of config objects for currently pending requests. This is primarily meant to be used for debugging purposes.

ngModel.NgModelController.$pending

$pending Object An object hash with all pending validator ids as keys.

ngMock.angular.mock.inject

function in module ngMock NOTE: This function is also published on window for easy access.NOTE: This function is declared ONLY WHEN running tests with jasmine or mocha The inject function wraps a function into an injectable function. The inject() creates new instance of $injector per test, which is then used for resolving references. Resolving References (Underscore Wrapping) Often, we would like to inject a reference once, in a beforeEach() block and reuse this in multiple it() clauses. T

ngMouseup

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

ngKeyup

directive in module ng Specify custom behavior on keyup event. Directive Info This directive executes at priority level 0. Usage as attribute: <ANY ng-keyup="expression"> ... </ANY> Arguments Param Type Details ngKeyup expression Expression to evaluate upon keyup. (Event object is available as $event and can be interrogated for keyCode, altKey, etc.)

$q.reject()

reject(reason); Creates a promise that is resolved as rejected with the specified reason. This api should be used to forward rejection in a chain of promises. If you are dealing with the last promise in a promise chain, you don't need to worry about it. When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of reject as the throw keyword in JavaScript. This also means that if you "catch" an error via a promise error callback and you want to forward the error to th

$sceProvider

$sce provider in module ng The $sceProvider provider allows developers to configure the $sce service. enable/disable Strict Contextual Escaping (SCE) in a module override the default implementation with a custom delegate Read more about Strict Contextual Escaping (SCE). Methods enabled([value]); Enables/disables SCE and returns the current value. Parameters Param Type Details value (optional) boolean If provided, then enables/disables SCE. Returns boolean true if SCE is enabl