ngMock.$httpBackend.expectRoute()

expectRoute(method, url); Creates a new request expectation that compares only with the requested route. Parameters Param Type Details method string HTTP method. url string HTTP url string that supports colon param matching. Returns requestHandler Returns an object with respond method that controls how a matched request is handled. You can save this object for later use and invoke respond again in order to change how a matched request is handled. See #expect for more info.

ngTouch.$touchProvider.ngClickOverrideEnabled()

ngClickOverrideEnabled([enabled]); Call this method to enable/disable ngTouch's ngClick directive. If enabled, the default ngClick directive will be replaced by a version that eliminates the 300ms delay for click events on browser for touch-devices. The default is false. Parameters Param Type Details enabled (optional) boolean update the ngClickOverrideEnabled state if provided, otherwise just return the current ngClickOverrideEnabled state Returns * current value if used as getter o

ngChecked

directive in module ng Sets the checked attribute on the element, if the expression inside ngChecked is truthy. Note that this directive should not be used together with ngModel, as this can lead to unexpected behavior. A special directive is necessary because we cannot use interpolation inside the checked attribute. See the interpolation guide for more info. Directive Info This directive executes at priority level 100. Usage as attribute: <INPUT ng-checked="expression"> ... <

ngMock.$httpBackend.whenDELETE()

whenDELETE(url, [headers], [keys]); Creates a new backend definition for DELETE requests. For more info see when(). Parameters Param Type Details url stringRegExpfunction(string) HTTP url or function that receives a url and returns true if the url matches the current definition. headers (optional) Objectfunction(Object) HTTP headers. keys (optional) Array Array of keys to assign to regex matches in request url described above. Returns requestHandler Returns an object with

ngMock.angular.mock.module

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 This function registers a module configuration code. It collects the configuration information which will be used when the injector is created by inject. See inject for usage example Usage angular.mock.module(fns); Arguments Param Type Details fns stringfunction()Object any number of modules which are represented as s

ngComponentRouter.$routerRootComponent

service in module ngComponentRouter The top level Routing Component associated with the $rootRouter.

ngMockE2E.$httpBackend.whenGET()

whenGET(url, [headers], [keys]); Creates a new backend definition for GET requests. For more info see when(). Parameters Param Type Details url stringRegExpfunction(string) HTTP url or function that receives a url and returns true if the url matches the current definition. headers (optional) Objectfunction(Object) HTTP headers. keys (optional) Array Array of keys to assign to regex matches in request url described on $httpBackend mock. Returns requestHandler Returns an ob

ngModel.NgModelController.$setValidity()

$setValidity(validationErrorKey, isValid); Change the validity state, and notify the form. This method can be called within $parsers/$formatters or a custom validation implementation. However, in most cases it should be sufficient to use the ngModel.$validators and ngModel.$asyncValidators collections which will call $setValidity automatically. Parameters Param Type Details validationErrorKey string Name of the validator. The validationErrorKey will be assigned to either $error[validatio

$compile.directive.Attributes.$observe()

$observe(key, fn); Observes an interpolated attribute. The observer function will be invoked once during the next $digest following compilation. The observer is then invoked whenever the interpolated value changes. Parameters Param Type Details key string Normalized key. (ie ngAttribute) . fn function(interpolatedValue) Function that will be called whenever the interpolated value of the attribute changes. See the Interpolation guide for more info. Returns function() Returns a d

ngMock.$log.error.logs

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