form.FormController.$dirty

$dirty boolean True if user has already interacted with the form.

form.FormController.$commitViewValue()

$commitViewValue(); Commit all form controls pending updates to the $modelValue. Updates may be pending by a debounced event or because the input is waiting for a some future event defined in ng-model-options. This method is rarely needed as NgModelController usually handles calling this in response to input events.

form.FormController.$addControl()

$addControl(control); Register a control with the form. Input elements using ngModelController do this automatically when they are linked. Note that the current state of the control will not be reflected on the new parent form. This is not an issue with normal use, as freshly compiled and linked controls are in a $pristine state. However, if the method is used programmatically, for example by adding dynamically created controls, or controls that have been previously removed without destroying

form.FormController

type in module ng FormController keeps track of all its controls and nested forms as well as the state of them, such as being valid/invalid or dirty/pristine. Each form directive creates an instance of FormController. Methods $rollbackViewValue(); Rollback all form controls pending updates to the $modelValue. Updates may be pending by a debounced event or because the input is waiting for a some future event defined in ng-model-options. This method is typically needed by the reset butto

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

filter

filter in module ng Selects a subset of items from array and returns it as a new array. Usage In HTML Template Binding {{ filter_expression | filter : expression : comparator}} In JavaScript $filter('filter')(array, expression, comparator) Arguments Param Type Details array Array The source array. expression stringObjectfunction() The predicate to be used for selecting items from array. Can be one of: string: The string is used for matching against the contents of the array.

date

filter in module ng Formats date to a string based on the requested format. format string can be composed of the following elements: 'yyyy': 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010) 'yy': 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10) 'y': 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199) 'MMMM': Month in year (January-December) 'MMM': Month in year (Jan-Dec) 'MM': Month in year, padded (

currency

filter in module ng Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default symbol for current locale is used. Usage In HTML Template Binding {{ currency_expression | currency : symbol : fractionSize}} In JavaScript $filter('currency')(amount, symbol, fractionSize) Arguments Param Type Details amount number Input to filter. symbol (optional) string Currency symbol or identifier to be displayed. fractionSize (optional) number Number of

auto.service

Name Description $injector $injector is used to retrieve object instances as defined by provider, instantiate types, invoke methods, and load modules. $provide The $provide service has a number of methods for registering components with the $injector. Many of these functions are also exposed on angular.Module.

auto.$provide.value()

value(name, value); Register a value service with the $injector, such as a string, a number, an array, an object or a function. This is short for registering a service where its provider's $get property is a factory function that takes no arguments and returns the value service. That also means it is not possible to inject other services into a value service. Value services are similar to constant services, except that they cannot be injected into a module configuration function (see angular.M