ngRoute.$route.$routeChangeSuccess

$routeChangeSuccess Broadcasted after a route change has happened successfully. The resolve dependencies are now available in the current.locals property. ngView listens for the directive to instantiate the controller and render the view. Type: broadcast Target: root scope Parameters Param Type Details angularEvent Object Synthetic event object. current Route Current route information. previous RouteUndefined Previous route information, or undefined if current is first ro

ngMock.$animate

service in module ngMock Mock implementation of the $animate service. Exposes two additional methods for testing animations. Methods closeAndFlush(); This method will close all pending animations (both Javascript and CSS) and it will also flush any remaining animation frames and/or callbacks. flush(); This method is used to flush the pending callbacks and animation frames to either start an animation or conclude an animation. Note that this will not actually close an actively runni

ngMock.object

Name Description angular.mock Namespace from 'angular-mocks.js' which contains testing related code.

ngMockE2E.$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 on $httpBackend mock. Returns requestHandler Returns

ngMock.$httpBackend.expectJSONP()

expectJSONP(url, [keys]); Creates a new request expectation for JSONP requests. For more info see expect(). Parameters Param Type Details url stringRegExpfunction(string) HTTP url or function that receives an url and returns true if the url matches the current definition. keys (optional) Array Array of keys to assign to regex matches in request url described above. Returns requestHandler Returns an object with respond method that controls how a matched request is handled. You c

angular.bind

function in module ng Returns a function which calls function fn bound to self (self becomes the this for fn). You can supply optional args that are prebound to the function. This feature is also known as partial application, as distinguished from function currying. Usage angular.bind(self, fn, args); Arguments Param Type Details self Object Context which fn should be evaluated in. fn function() Function to be bound. args * Optional arguments to be prebound to the fn fun

angular.reloadWithDebugInfo

function in module ng Use this function to reload the current application with debug information turned on. This takes precedence over a call to $compileProvider.debugInfoEnabled(false). See $compileProvider for more.

ngMock.$interval.cancel()

cancel(promise); Cancels a task associated with the promise. Parameters Param Type Details promise promise A promise from calling the $interval function. Returns boolean Returns true if the task was successfully cancelled.

ngMock.$timeout.flush()

flush([delay]); Flushes the queue of pending tasks. Parameters Param Type Details delay (optional) number maximum timeout amount to flush up until

ngSubmit

directive in module ng Enables binding angular expressions to onsubmit events. Additionally it prevents the default action (which for form means sending the request to the server and reloading the current page), but only if the form does not contain action, data-action, or x-action attributes. Warning: Be careful not to cause "double-submission" by using both the ngClick and ngSubmit handlers together. See the form directive documentation for a detailed discussion of when ngSubmit may be