$http.defaults

defaults Runtime equivalent of the $httpProvider.defaults property. Allows configuration of default headers, withCredentials as well as request and response transformations. See "Setting HTTP Headers" and "Transforming Requests and Responses" sections above.

$anchorScrollProvider

$anchorScroll provider in module ng Use $anchorScrollProvider to disable automatic scrolling whenever $location.hash() changes. Methods disableAutoScrolling(); By default, $anchorScroll() will automatically detect changes to $location.hash() and scroll to the element matching the new hash. Use this method to disable automatic scrolling. If automatic scrolling is disabled, one must explicitly call $anchorScroll() in order to scroll to the element related to the current hash.

$anchorScrollProvider.disableAutoScrolling()

disableAutoScrolling(); By default, $anchorScroll() will automatically detect changes to $location.hash() and scroll to the element matching the new hash. Use this method to disable automatic scrolling. If automatic scrolling is disabled, one must explicitly call $anchorScroll() in order to scroll to the element related to the current hash.

ngSrc

directive in module ng Using Angular markup like {{hash}} in a src attribute doesn't work right: The browser will fetch from the URL with the literal text {{hash}} until Angular replaces the expression inside {{hash}}. The ngSrc directive solves this problem. The buggy way to write it: <img src="http://www.gravatar.com/avatar/{{hash}}" alt="Description"/> The correct way to write it: <img ng-src="http://www.gravatar.com/avatar/{{hash}}" alt="Description" /> Directive Info T

$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

ngModel.NgModelController.$isEmpty()

$isEmpty(value); This is called when we need to determine if the value of an input is empty. For instance, the required directive does this to work out if the input has data or not. The default $isEmpty function checks whether the value is undefined, '', null or NaN. You can override this for input directives whose concept of being empty is different from the default. The checkboxInputType directive does this because in its case a value of false implies empty. Parameters Param Type Details v

ngCookies.$cookiesProvider

$cookies provider in module ngCookies Use $cookiesProvider to change the default behavior of the $cookies service. Properties 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. F

$filterProvider.register()

register(name, factory); Parameters Param Type Details name stringObject Name of the filter function, or an object map of filters where the keys are the filter names and the values are the filter factories. Note: Filter names must be valid angular Expressions identifiers, such as uppercase or orderBy. Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace your filters, then you can use capitalization (myappSubsectionFilterx) or underscores (myap

$sce.parseAs()

parseAs(type, expression); Converts Angular expression into a function. This is like $parse and is identical when the expression is a literal constant. Otherwise, it wraps the expression in a call to $sce.getTrusted(type, result) Parameters Param Type Details type string The kind of SCE context in which this result will be used. expression string String expression to compile. Returns function(context, locals) a function which represents the compiled expression: context â {o

form

directive in module ng Directive that instantiates FormController. If the name attribute is specified, the form controller is published onto the current scope under this name. Alias: ngForm In Angular, forms can be nested. This means that the outer form is valid when all of the child forms are valid as well. However, browsers do not allow nesting of <form> elements, so Angular provides the ngForm directive, which behaves identically to form but can be nested. Nested forms can be use