This repository was archived by the owner on Sep 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 231
/
Copy pathangular_forms.dart
69 lines (65 loc) · 1.94 KB
/
angular_forms.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/// This module is used for handling user input, by defining and building a
/// [ControlGroup] that consists of [Control] objects, and mapping them onto
/// the DOM. [Control] objects can then be used to read information from the
/// form DOM elements.
///
/// This module is not included in the `angular` module; you must import the
/// forms module explicitly.
library angular_forms; // name the library so we can run dartdoc on it by name.
import 'src/directives/radio_control_value_accessor.dart'
show RadioControlRegistry;
export 'src/directives.dart'
show
composeValidators,
setUpControl,
setUpControlGroup,
formDirectives,
AbstractControlDirective,
AbstractNgForm,
ChangeFunction,
CheckboxControlValueAccessor,
ControlContainer,
ControlValueAccessor,
DefaultValueAccessor,
Form,
MaxLengthValidator,
MemorizedForm,
MinLengthValidator,
NgControl,
NgControlGroup,
NgControlName,
NgControlStatus,
NgForm,
NgFormControl,
NgFormModel,
NgModel,
NgSelectOption,
ngValueAccessor,
NumberValueAccessor,
PatternValidator,
RadioControlValueAccessor,
RadioButtonState,
RequiredValidator,
SelectControlValueAccessor,
TouchFunction,
Validator,
ValidatorFn;
export 'src/form_builder.dart' show FormBuilder;
export 'src/model.dart'
show
AbstractControl,
Control,
AbstractControlGroup,
ControlGroup,
ControlArray;
export 'src/validators.dart' show NG_VALIDATORS, Validators;
/// Shorthand set of providers used for building Angular forms.
///
/// ### Example
///
/// ```dart
/// runApp(createMyAppFactory(), [FORM_PROVIDERS]);
/// ````
const List<Type> FORM_PROVIDERS = [RadioControlRegistry];
/// See [FORM_PROVIDERS] instead.
const FORM_BINDINGS = FORM_PROVIDERS;