form.FormController.$dirty

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

form.FormController.$pending

$pending boolean True if at least one containing control or form is pending.

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

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

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

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 (

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.

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.

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.$provide.provider()

provider(name, provider); Register a provider function with the $injector. Provider functions are constructor functions, whose instances are responsible for "providing" a factory for a service. Service provider names start with the name of the service they provide followed by Provider. For example, the $log service has a provider called $logProvider. Service provider objects can have additional methods which allow configuration of the provider and its service. Importantly, you can configure wh