ngComponentRouter.Router

type in module ngComponentRouter A Router is responsible for mapping URLs to components. Routers and "Routing Component" instances have a 1:1 correspondence. The Router holds reference to one or more of Outlets. There are two kinds of Router: RootRouter and ChildRouter. You can see the state of a router by inspecting the read-only field router.navigating. This may be useful for showing a spinner, for instance.

$compileProvider.aHrefSanitizationWhitelist()

aHrefSanitizationWhitelist([regexp]); Retrieves or overrides the default regular expression that is used for whitelisting of safe urls during a[href] sanitization. The sanitization is a security measure aimed at preventing XSS attacks via html links. Any url about to be assigned to a[href] via data-binding is first normalized and turned into an absolute url. Afterwards, the url is matched against the aHrefSanitizationWhitelist regular expression. If a match is found, the original url is writte

angular.version

object in module ng An object that contains information about the current AngularJS version. This object has the following properties: full â {string} â Full version string, such as "0.9.18". major â {number} â Major version number, such as "0". minor â {number} â Minor version number, such as "9". dot â {number} â Dot version number, such as "18". codeName â {string} â Code name of the release, such as "jiggling-armfat".

$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

$sce.parseAsUrl()

parseAsUrl(expression); Shorthand method. $sce.parseAsUrl(value) â $sce.parseAs($sce.URL, value) Parameters Param Type Details expression string String expression to compile. Returns function(context, locals) a function which represents the compiled expression: context â {object} â an object against which any expressions embedded in the strings are evaluated against (typically a scope object). locals â {object=} â local variables context object, useful for overriding

ngMock.angular.mock.dump

function in module ngMock NOTE: this is not an injectable instance, just a globally available function. Method for serializing common angular objects (scope, elements, etc..) into strings, useful for debugging. This method is also available on window, where it can be used to display objects on debug console. Usage angular.mock.dump(object); Arguments Param Type Details object * any object to turn into string. Returns string a serialized string of the argument

ngMock.$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) stringRegExpfunction(string) HTTP request body or function that receives data string and returns true if the data is as expected. headers (optional) Objectfunction(Object) HTTP hea

$anchorScroll.yOffset

yOffset numberfunction()jqLite If set, specifies a vertical scroll-offset. This is often useful when there are fixed positioned elements at the top of the page, such as navbars, headers etc. yOffset can be specified in various ways: number: A fixed number of pixels to be used as offset. function: A getter function called everytime $anchorScroll() is executed. Must return a number representing the offset (in pixels). jqLite: A jqLite/jQuery element to be used for specifying the offset. The

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 â {