angular.Module.decorator()

decorator(The, This); See $provide.decorator(). Parameters Param Type Details The string name of the service to decorate. This Function function will be invoked when the service needs to be instantiated and should return the decorated service instance.

ngMock.$timeout

service in module ngMock This service is just a simple decorator for $timeout service that adds a "flush" and "verifyNoPendingTasks" methods. Methods flush([delay]); Flushes the queue of pending tasks. Parameters Param Type Details delay (optional) number maximum timeout amount to flush up until verifyNoPendingTasks(); Verifies that there are no pending tasks that need to be flushed.

ngRoute.$route.$routeChangeStart

$routeChangeStart Broadcasted before a route change. At this point the route services starts resolving all of the dependencies needed for the route change to occur. Typically this involves fetching the view template as well as any dependencies defined in resolve route property. Once all of the dependencies are resolved $routeChangeSuccess is fired. The route change (and the $location change that triggered it) can be prevented by calling preventDefault method of the event. See $rootScope.Scope

ngRoute.$route.current

current Object Reference to the current route definition. The route definition contains: controller: The controller constructor as defined in the route definition. locals: A map of locals which is used by $controller service for controller instantiation. The locals contain the resolved values of the resolve map. Additionally the locals also contain: $scope - The current route scope. $template - The current route template HTML. The locals will be assigned to the route scope's $resolve prope

ngRoute.$route.$routeUpdate

$routeUpdate The reloadOnSearch property has been set to false, and we are reusing the same instance of the Controller. Type: broadcast Target: root scope Parameters Param Type Details angularEvent Object Synthetic event object current Route Current/previous route information.

ngMockE2E.$httpBackend.whenHEAD()

whenHEAD(url, [headers], [keys]); Creates a new backend definition for HEAD 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

ngMockE2E.$httpBackend.whenPOST()

whenPOST(url, [data], [headers], [keys]); Creates a new backend definition for POST 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. data (optional) stringRegExp HTTP request body. headers (optional) Objectfunction(Object) HTTP headers. keys (optional) Array Array of keys to assign to regex matches in request url describe

ngMockE2E.$httpBackend.whenRoute()

whenRoute(method, url); Creates a new backend definition 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 and passThrough methods that control how a matched request is handled. You can save this object for later use and invoke respond or passThrough again in order to change how a matched request is handled.

ngModel.NgModelController.$error

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

angular.isFunction

function in module ng Determines if a reference is a Function. Usage angular.isFunction(value); Arguments Param Type Details value * Reference to check. Returns boolean True if value is a Function.