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

$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

$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

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

ngMock.$rootScope.Scope

type in module ngMock Scope type decorated with helper methods useful for testing. These methods are automatically available on any Scope instance when ngMock module is loaded. In addition to all the regular Scope methods, the following helper methods are available: Methods $countChildScopes(); Counts all the direct and indirect child scopes of the current scope. The current scope is excluded from the count. The count includes all isolate child scopes. Returns number Total number of

ngModel.NgModelController.$setPristine()

$setPristine(); Sets the control to its pristine state. This method can be called to remove the ng-dirty class and set the control to its pristine state (ng-pristine class). A model is considered to be pristine when the control has not been changed from when first compiled.

ngModel.NgModelController.$formatters

$formatters Array.<Function> Array of functions to execute, as a pipeline, whenever the model value changes. The functions are called in reverse array order, each passing the value through to the next. The last return value is used as the actual DOM value. Used to format / convert values for display in the control. function formatter(value) { if (value) { return value.toUpperCase(); } } ngModel.$formatters.push(formatter);

ngTouch.$touch.ngClickOverrideEnabled()

ngClickOverrideEnabled(); Returns * current value of ngClickOverrideEnabled set in the $touchProvider, i.e. if ngTouch's ngClick directive is enabled.

ngSanitize

Installation First include angular-sanitize.js in your HTML: <script src="angular.js"> <script src="angular-sanitize.js"> You can download this file from the following places: Google CDN e.g. //ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/angular-sanitize.js Bower e.g. bower install angular-sanitize@X.Y.Z code.angularjs.org e.g. "//code.angularjs.org/X.Y.Z/angular-sanitize.js" where X.Y.Z is the AngularJS version you are running. Then load the module in your application by

$sce.getTrustedResourceUrl()

getTrustedResourceUrl(value); Shorthand method. $sce.getTrustedResourceUrl(value) â $sceDelegate.getTrusted($sce.RESOURCE_URL, value) Parameters Param Type Details value * The value to pass to $sceDelegate.getTrusted. Returns * The return value of $sce.getTrusted($sce.RESOURCE_URL, value)