MemorizedForm class
A form that will not remove controls if the control is taken out of the
view for example with a NgIf
.
- Inheritance
- Annotations
-
- @Directive(selector: '[memorizedForm]', providers: [Provider(ControlContainer, useExisting: MemorizedForm), Provider(NgForm, useExisting: MemorizedForm)], exportAs: 'ngForm')
Constructors
- MemorizedForm(@Optional() @Self() @Inject(NG_VALIDATORS) List? validators, ChangeDetectorRef changeDetectorRef)
Properties
- changeDetectorRef → ChangeDetectorRef
-
finalinherited
- control → ControlGroup?
-
no setterinherited
-
controls
→ Map<
String?, AbstractControl> ? -
no setterinherited
- dirty → bool?
-
no setterinherited
- disabled ↔ bool?
-
getter/setter pairinherited
- enabled → bool?
-
no setterinherited
-
errors
→ Map<
String, dynamic> ? -
no setterinherited
- form ↔ ControlGroup?
-
getter/setter pairinherited
- formDirective → Form
-
Get the form to which this container belongs.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String?
-
getter/setter pairinherited
-
ngBeforeSubmit
→ Stream<
ControlGroup> -
An event that is fired before the main form submission event.
no setterinherited
-
ngSubmit
→ Stream<
ControlGroup> -
An event fired with the user has triggered a form submission.
no setterinherited
-
path
→ List<
String> -
no setterinherited
- pristine → bool?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- touched → bool?
-
no setterinherited
- untouched → bool?
-
no setterinherited
- valid → bool?
-
no setterinherited
- value → dynamic
-
no setterinherited
Methods
-
addControl(
NgControl dir) → void -
Add a control if it isn't already found in the container.
override
-
addControlGroup(
NgControlGroup dir) → void -
Add a control group if it isn't already found in the container.
override
-
createControl(
NgControl _) → Control -
inherited
-
createGroup(
NgControlGroup _) → ControlGroup -
inherited
-
findContainer(
List< String?> path) → ControlGroup? -
inherited
-
getControl(
NgControl dir) → Control? -
Look up the Control associated with a particular NgControl.
inherited
-
getControlGroup(
NgControlGroup dir) → AbstractControlGroup? -
Look up the AbstractControlGroup associated with a particular
NgControlGroup.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onReset(
Event? event) → void -
inherited
-
onSubmit(
Event? event) → void -
inherited
-
removeControl(
NgControl? ctrl) → void -
Remove a control from this form.
override
-
removeControlGroup(
NgControlGroup? ctrl) → void -
Remove a group of controls from this form.
override
-
reset(
{dynamic value}) → void -
Resets the form control.
inherited
-
toggleDisabled(
bool isDisabled) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateModel(
NgControl dir, dynamic value) → void -
Update the model for a particular control with a new value.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited