Constants
- COMMON_DIRECTIVES → List<List<Type>>
-
A collection of Angular core directives that are likely to be used in each and every Angular application. This includes core directives (e.g., NgIf and NgFor), and forms directives (e.g., NgModel).
const [CORE_DIRECTIVES, FORM_DIRECTIVES]
- COMMON_PIPES → dynamic
-
A collection of Angular core pipes that are likely to be used in each and every application.
const [AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, CurrencyPipe, DatePipe, ReplacePipe]
- CORE_DIRECTIVES → List<Type>
-
A collection of Angular core directives that are likely to be used in each and every Angular application.
const [NgClass, NgFor, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchWhen, NgSwitchDefault, NgPlural, NgPluralCase]
- FORM_BINDINGS → dynamic
-
See FORM_PROVIDERS instead.
FORM_PROVIDERS
- FORM_DIRECTIVES → List<Type>
-
A list of all the form directives used as part of a
@Component
annotation.const [NgControlName, NgControlGroup, NgFormControl, NgModel, NgFormModel, NgForm, NgSelectOption, DefaultValueAccessor, NumberValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, …
- FORM_PROVIDERS → List<Type>
-
Shorthand set of providers used for building Angular forms.
const [FormBuilder, RadioControlRegistry]
- NG_ASYNC_VALIDATORS → OpaqueToken
-
Providers for asynchronous validators to be used for Controls in a form.
const OpaqueToken("NgAsyncValidators")
- NG_VALIDATORS → OpaqueToken
-
Providers for validators to be used for Controls in a form.
const OpaqueToken("NgValidators")
- NG_VALUE_ACCESSOR → OpaqueToken
-
Used to provide a ControlValueAccessor for form controls.
const OpaqueToken("NgValueAccessor")
Typedefs
-
ValidatorFn(
AbstractControl c) → Map<String, dynamic>
Classes
- AbstractControl
- AbstractControlDirective
-
Base class for control directives.
- AsyncPipe
-
An
async
pipe awaits for a value from aFuture
or Stream. When a value is received, theasync
pipe marks the component to be checked for changes. - CheckboxControlValueAccessor
-
The accessor for writing a value and listening to changes on a checkbox input element.
- Control
-
Defines a part of a form that cannot be divided into other controls.
Control
s have values and validation state, which is determined by an optional validation function. - ControlArray
-
Defines a part of a form, of variable length, that can contain other controls.
- ControlContainer
-
A directive that contains multiple
NgControl
s. - ControlGroup
-
Defines a part of a form, of fixed length, that can contain other controls.
- ControlValueAccessor
-
A bridge between a control and a native element.
- CurrencyPipe
-
WARNING: this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera browsers.
- DatePipe
-
Formats a date value to a string based on the requested format.
- DecimalPipe
-
WARNING: this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera browsers.
- DefaultValueAccessor
-
The default accessor for writing a value and listening to changes that is used by the
NgModel
,NgFormControl
, andNgControlName
directives. - Form
-
An interface that
NgFormModel
andNgForm
implement. - FormBuilder
-
Creates a form object from a user-specified configuration.
- JsonPipe
-
Transforms any input value using
JSON.encode
. Useful for debugging. - LowerCasePipe
-
Transforms text to lowercase.
- MaxLengthValidator
-
A directive which installs the MaxLengthValidator for any
ngControl
,ngFormControl
, or control withngModel
that also has amaxlength
attribute. - MinLengthValidator
-
A directive which installs the MinLengthValidator for any
ngControl
,ngFormControl
, or control withngModel
that also has aminlength
attribute. - NgClass
-
The NgClass directive conditionally adds and removes CSS classes on an HTML element based on an expression's evaluation result.
- NgControl
-
A base class that all control directive extend. It binds a
Control
object to a DOM element. - NgControlGroup
-
Creates and binds a control group to a DOM element.
- NgControlName
-
Creates and binds a control with a specified name to a DOM element.
- NgControlStatus
-
Directive automatically applied to Angular forms that sets CSS classes based on control status (valid/invalid/dirty/etc).
- NgFor
-
The
NgFor
directive instantiates a template once per item from an iterable. The context for each instantiated template inherits from the outer context with the given loop variable set to the current item from the iterable. - NgForm
-
If
NgForm
is bound in a component,<form>
elements in that component will be upgraded to use the Angular form system. - NgFormControl
-
Binds an existing Control to a DOM element.
- NgFormModel
-
Binds an existing control group to a DOM element.
- NgIf
-
Causes an element and its contents to be added/removed from the DOM conditionally, based on the value of the supplied boolean template expression.
- NgLocalization
- NgModel
-
Creates a form NgControl instance from a domain model and binds it to a form control element. The form NgControl instance tracks the value, user interaction, and validation status of the control and keeps the view synced with the model. If used within a parent form, the directive will also register itself with the form as a child control.
- NgPlural
- NgPluralCase
-
ngPlural
is an i18n directive that displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees that match the switch expression's pluralization category. - NgSelectOption
-
Marks
<option>
as dynamic, so Angular can be notified when options change. - NgStyle
-
The
NgStyle
directive changes an element's style based on the bound style expression: - NgSwitch
-
Adds or removes DOM sub-trees when their match expressions match the switch expression.
- NgSwitchDefault
-
Default case statements are displayed when no match expression matches the switch expression value.
- NgSwitchWhen
-
Insert the sub-tree when the
ngSwitchWhen
expression evaluates to the same value as the enclosing switch expression. - NgTemplateOutlet
-
Creates and inserts an embedded view based on a prepared
TemplateRef
. - NumberPipe
-
Internal base class for numeric pipes.
- ObservableListDiff
- ObservableListDiffFactory
- PatternValidator
- PercentPipe
-
WARNING: this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera browsers.
- RadioButtonState
-
The value provided by the forms API for radio buttons.
- ReplacePipe
-
Creates a new String with some or all of the matches of a pattern replaced by a replacement.
- RequiredValidator
-
A Directive that adds the
required
validator to any controls marked with therequired
attribute, via the NG_VALIDATORS binding. - SelectControlValueAccessor
-
The accessor for writing a value and listening to changes on a select element.
- SlicePipe
-
Creates a new List or String containing only a subset (slice) of the elements.
- UpperCasePipe
-
Implements uppercase transforms to text.
- Validator
-
An interface that can be implemented by classes that can act as validators.
- Validators
-
Provides a set of validators used by form controls.