ngMock

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

ngMock.$log.info.logs

info.logs Array of messages logged using info().

$compile.directive.Attributes

type in module ng A shared object between directive compile / linking functions which contains normalized DOM element attributes. The values reflect current binding state {{ }}. The normalization is needed since all of these are treated as equivalent in Angular: <span ng:bind="a" ng-bind="a" data-ng-bind="a" x-ng-bind="a"> Methods $normalize(name); Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with x- or data-) to its normalized, ca

Guide: Filters

A filter formats the value of an expression for display to the user. They can be used in view templates, controllers or services and it is easy to define your own filter. The underlying API is the filterProvider. Using filters in view templates Filters can be applied to expressions in view templates using the following syntax: {{ expression | filter }} E.g. the markup {{ 12 | currency }} formats the number 12 as a currency using the currency filter. The resulting value is $12.00. Filters can b

ngRoute.directive

Name Description ngView Overview ngView is a directive that complements the $route service by including the rendered template of the current route into the main layout (index.html) file. Every time the current route changes, the included view changes with it according to the configuration of the $route service.

$animateProvider.register()

register(name, factory); Registers a new injectable animation factory function. The factory function produces the animation object which contains callback functions for each event that is expected to be animated. eventFn: function(element, ... , doneFunction, options) The element to animate, the doneFunction and the options fed into the animation. Depending on the type of animation additional arguments will be injected into the animation function. The list below explains the function signatur

$animateProvider

$animate provider in module ng Default implementation of $animate that doesn't perform any animations, instead just synchronously performs DOM updates and resolves the returned runner promise. In order to enable animations the ngAnimate module has to be loaded. To see the functional implementation check out src/ngAnimate/animate.js. Methods register(name, factory); Registers a new injectable animation factory function. The factory function produces the animation object which contains

$sceDelegate

$sceDelegateProvider service in module ng $sceDelegate is a service that is used by the $sce service to provide Strict Contextual Escaping (SCE) services to AngularJS. Typically, you would configure or override the $sceDelegate instead of the $sce service to customize the way Strict Contextual Escaping works in AngularJS. This is because, while the $sce provides numerous shorthand methods, etc., you really only need to override 3 core functions (trustAs, getTrusted and valueOf) to replac

ngAria.$ariaProvider.config()

config(config); Enables/disables various ARIA attributes Parameters Param Type Details config object object to enable/disable specific ARIA attributes ariaHidden â {boolean} â Enables/disables aria-hidden tags ariaChecked â {boolean} â Enables/disables aria-checked tags ariaDisabled â {boolean} â Enables/disables aria-disabled tags ariaRequired â {boolean} â Enables/disables aria-required tags ariaInvalid â {boolean} â Enables/disables aria-invalid tags

$rootScope

$rootScopeProvider service in module ng Every application has a single root scope. All other scopes are descendant scopes of the root scope. Scopes provide separation between the model and the view, via a mechanism for watching the model for changes. They also provide event emission/broadcast and subscription facility. See the developer guide on scopes.