angular_forms 2.0.0-alpha+1 angular_forms: ^2.0.0-alpha+1 copied to clipboard
Forms framework for AngularDart.
2.0.0-alpha+1 #
New Features #
- Add
MemorizedForm
directive. This is a form that will not remove controls if the control is taken out of the view, for example with a [NgIf].
Breaking Changes #
- Remove
optionals
param fromControlGroup
constructor. This will soon be replaced bydisabled
state for allControls
. See https://github.com/dart-lang/angular/issues/1037 for more details.
2.0.0-alpha #
NOTE: This used to be 1.0.1-alpha
, but has changed to be 2.0.0-alpha
due
to the fact that there are breaking changes in the previous dev releases. Future
development releases are moving to 2.x.x
, and a 1.0.1
will never be
released.
Breaking changes #
AbstractControl.find
now only accepts a String. To supply a list, useAbstractControl.findPath
instead. Also, forfind
orfindPath
,ControlArray
index is now callingint.parse
instead of expecting a raw number.
1.0.1-alpha+7 #
Breaking changes #
-
The following directives are no longer injectable:
NgControlStatus
RequiredValidator
MinLengthValidator
MaxLengthValidator
PatternValidator
-
Properly typed the generic parameter on subclasses of
AbstractControlDirective
. Now,NgControl.control
will return aControl
, andControlContainer.control
will return aControlGroup
. There may be some unnecessary casts that can now be cleaned up. -
FormBuilder
instance methodsgroup
,control
, andarray
have been removed. ForFormBuilder.control
, just callnew Control(value, validator)
directly. ForFormBuilder.group
andFormBuilder.array
, use the static methodsFormBuilder.controlGroup
andFormBuilder.controlArray
, respectively.FormBuilder
is no longerInjectable
.
1.0.1-alpha+6 #
New features #
- Add
markAsUntouched
method toAbstractControl
. - Add a type annotation,
T
, toAbstractControl
, which is tied to the type ofvalue
. ControlGroup
nowextends AbstractControl<Map<String, dynamic>>
.ControlArray
nowextends AbstractControl<List>
.
Breaking Changes #
- Changed type of
AbstractControl.statusChanges
fromStream<dynamic>
toStream<String>
. This now matches the type forAbstractControl.status
, which as always been aString
.
Deprecations #
FormBuilder
instance methodsgroup
,control
, andarray
are now deprecated. ForFormBuilder.control
, just callnew Control(value, validator)
directly. ForFormBuilder.group
andFormBuilder.array
, use the static methodsFormBuilder.controlGroup
andFormBuilder.controlArray
respectively. In a future release,FormBuilder
will not not beInjectable
.
1.0.1-alpha+5 #
Maintenance release, to support the latest package:angular alpha.
1.0.1-alpha+4 #
Maintenance release, to support the latest package:angular alpha.
1.0.1-alpha+3 #
- Some documentation updates.
- Dartium is no longer supported.
1.0.1-alpha+2 #
Maintenance release, to support the latest package:angular alpha.
1.0.1-alpha+1 #
- Use the new generic function syntax, stop using
package:func
. - Don't throw a null pointer exception in NgFormModel if a directives asks for a Control value before the form is initialized.
1.0.1-alpha #
- Support breaking changes in angular 5.0.0-alpha
- Allow expressions for maxlength/minlength validators. Breaking change does
not support string values for maxlength/minlength anymore.
minlength="12"
now should be written[minlength]="12"
1.0.0 #
- Support for angular 4.0.0.
0.1.0 #
- Initial commit of
angular_forms
.