$animate.move()

move(element, parent, [after], [options]); Inserts (moves) the element into its new position in the DOM either after the after element (if provided) or as the first child within the parent element and then triggers an animation. A promise is returned that will be resolved during the next digest once the animation has completed. Parameters Param Type Details element DOMElement the element which will be moved into the new DOM position parent DOMElement the parent element which will a

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

$animate.removeClass()

removeClass(element, className, [options]); Triggers a removeClass animation surrounding the removal of the provided CSS class(es). Upon execution, the removeClass operation will only be handled after the next digest and it will not trigger an animation if element does not contain the CSS class or if the class is added 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/remov

ngMock.$httpBackend.flush()

flush([count]); Flushes all pending requests using the trained responses. Parameters Param Type Details count (optional) number Number of responses to flush (in the order they arrived). If undefined, all pending requests will be flushed. If there are no pending requests when the flush method is called an exception is thrown (as this typically a sign of programming error).

ngCookies.$cookieStore.remove()

remove(key); Remove given cookie Parameters Param Type Details key string Id of the key-value pair to delete.

ngClass

directive in module ng The ngClass directive allows you to dynamically set CSS classes on an HTML element by databinding an expression that represents all classes to be added. The directive operates in three different ways, depending on which of three types the expression evaluates to: If the expression evaluates to a string, the string should be one or more space-delimited class names. If the expression evaluates to an object, then for each key-value pair of the object with a truthy va

$sceDelegate.getTrusted()

getTrusted(type, maybeTrusted); Takes the result of a $sceDelegate.trustAs call and returns the originally supplied value if the queried context type is a supertype of the created type. If this condition isn't satisfied, throws an exception. Disabling auto-escaping is extremely dangerous, it usually creates a Cross Site Scripting (XSS) vulnerability in your application. Parameters Param Type Details type string The kind of context in which this value is to be used. maybeTrusted *

ngMock.$exceptionHandlerProvider

$exceptionHandler provider in module ngMock Configures the mock implementation of $exceptionHandler to rethrow or to log errors passed to the $exceptionHandler. Methods mode(mode); Sets the logging mode. Parameters Param Type Details mode string Mode of operation, defaults to rethrow. log: Sometimes it is desirable to test that an error is thrown, for this case the logmode stores an array of errors in `$exceptionHandler.errors`, to allow later assertion of them. See assertEmpt

ngSanitize.$sanitizeProvider.enableSvg()

enableSvg([regexp]); Enables a subset of svg to be supported by the sanitizer. By enabling this setting without taking other precautions, you might expose your application to click-hijacking attacks. In these attacks, sanitized svg elements could be positioned outside of the containing element and be rendered over other elements on the page (e.g. a login link). Such behavior can then result in phishing incidents. To protect against these, explicitly setup overflow: hidden css rule for all pot

$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.