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

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

ngCookies.$cookieStore.remove()

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

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

$sce.trustAs()

trustAs(type, value); Delegates to $sceDelegate.trustAs. As such, returns an object that is trusted by angular for use in specified strict contextual escaping contexts (such as ng-bind-html, ng-include, any src attribute interpolation, any dom event binding attribute interpolation such as for onclick, etc.) that uses the provided value. See * $sce for enabling strict contextual escaping. Parameters Param Type Details type string The kind of context in which this value is safe for use. e.

$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

ngAria.$ariaProvider

$aria provider in module ngAria Used for configuring the ARIA attributes injected and managed by ngAria. angular.module('myApp', ['ngAria'], function config($ariaProvider) { $ariaProvider.config({ ariaValue: true, tabindex: false }); }); Dependencies Requires the ngAria module to be installed. Methods config(config); Enables/disables various ARIA attributes Parameters Param Type Details config object object to enable/disable specific ARIA attributes ariaHidden â {

$animate.off()

off(event, [container], [callback]); Deregisters an event listener based on the event which has been associated with the provided element. This method can be used in three different ways depending on the arguments: // remove all the animation event listeners listening for `enter` $animate.off('enter'); // remove all the animation event listeners listening for `enter` on the given element and its children $animate.off('enter', container); // remove the event listener function provided by `cal

$animate.setClass()

setClass(element, add, remove, [options]); Performs both the addition and removal of a CSS classes on an element and (during the process) triggers an animation surrounding the class addition/removal. Much like $animate.addClass and $animate.removeClass, setClass will only evaluate the classes being added/removed once a digest has passed. Note that class-based animations are treated differently compared to structural animations (like enter, move and leave) since the CSS classes may be added/rem

limitTo

filter in module ng Creates a new array or string containing only a specified number of elements. The elements are taken from either the beginning or the end of the source array, string or number, as specified by the value and sign (positive or negative) of limit. If a number is used as input, it is converted to a string. Usage In HTML Template Binding {{ limitTo_expression | limitTo : limit : begin}} In JavaScript $filter('limitTo')(input, limit, begin) Arguments Param Type Details inp