$animate.addClass()

addClass(element, className, [options]); Triggers an addClass animation surrounding the addition of the provided CSS class(es). Upon execution, the addClass operation will only be handled after the next digest and it will not trigger an animation if element already contains the CSS class or if the class is removed at a later step. Note that class-based animations are treated differently compared to structural animations (like enter, move and leave) since the CSS classes may be added/removed at

ngMockE2E

Installation First include angular-mocks.js in your HTML: <script src="angular.js"> <script src="angular-mocks.js"> You can download this file from the following places: Google CDN e.g. //ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/angular-mocks.js Bower e.g. bower install angular-mocks@X.Y.Z code.angularjs.org e.g. "//code.angularjs.org/X.Y.Z/angular-mocks.js" where X.Y.Z is the AngularJS version you are running. Then load the module in your application by adding it as a

$parseProvider.addLiteral()

addLiteral(literalName, literalValue); Configure $parse service to add literal values that will be present as literal at expressions. Parameters Param Type Details literalName string Token for the literal value. The literal name value must be a valid literal name. literalValue * Value for this literal. All literal values must be primitives or undefined.

ngMock.angular.mock.TzDate

type in module ngMock NOTE: this is not an injectable instance, just a globally available mock class of Date. Mock of the Date type which has its timezone specified via constructor arg. The main purpose is to create Date-like instances with timezone fixed to the specified timezone offset, so that we can test code that depends on local timezone settings without dependency on the time zone settings of the machine where the code is running. Usage angular.mock.TzDate(offset, timestamp); Argu

angular.injector

function in module ng Creates an injector object that can be used for retrieving services as well as for dependency injection (see dependency injection). Usage angular.injector(modules, [strictDi]); Arguments Param Type Details modules Array.<string|Function> A list of module functions or their aliases. See angular.module. The ng module must be explicitly added. strictDi (optional) boolean Whether the injector should be in strict mode, which disallows argument name annot

angular.Module.constant()

constant(name, object); Because the constants are fixed, they get applied before other provide methods. See $provide.constant(). Parameters Param Type Details name string constant name object * Constant value.

$animate.on()

on(event, container, callback); Sets up an event listener to fire whenever the animation event (enter, leave, move, etc...) has fired on the given element or among any of its children. Once the listener is fired, the provided callback is fired with the following params: $animate.on('enter', container, function callback(element, phase) { // cool we detected an enter animation within the container } ); Parameters Param Type Details event string the animation event that will be

ngCookies.$cookies.put()

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

ngCookies.$cookiesProvider.defaults

defaults Object containing default options to pass when setting cookies. The object may have following properties: path - {string} - The cookie will be available only for this path and its sub-paths. By default, this is the URL that appears in your <base> tag. domain - {string} - The cookie will be available only for this domain and its sub-domains. For security reasons the user agent will not accept the cookie if the current domain is not a sub-domain of this domain or equal to it.

ngMock.$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 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 #when for more info.