ngrx-forms
Advanced tools
Changelog
2.3.0
minLength
, maxLength
, and required
validation functions (c88353a), closes #40 (thanks @icepeng)<a name="2.2.0"></a>
Changelog
2.2.0
updateArray
update function that causes a compile error if used inside an updateGroup
(fa7dccc)updateGroup
throwing an error if an empty update object was provided in curried as well as uncurried version (bee4d54)createFormGroupState
producing results inconsistent with how group states are recomputed from their children after an update (1c62d8c)createFormArrayState
producing results inconsistent with how array states are recomputed from their children after an update (70fdc10)<a name="2.1.2"></a>
Changelog
2.0.1
addArrayControl
update function is called with only a value but neither an index nor a state<a name="2.0.0"></a>
Changelog
2.0.0
validate
update function to take a single validation function or an array of validation functions (ba976c5)setErrors
update function (ee25ca8)reset
update function (d380e67)updateRecursive
update function (see the documentation for a usage example) (31f9d5d)FormViewAdapter
and rewrite all control value accessors from scratch as view adapters (see the documentation for more details)groupUpdateReducer
to createFormGroupReducerWithUpdate
in order to make it clearer that the function itself is not a reducercreateChildState
from public APIoption
element value
bindings to work correctly for all primitive data types thereby removing the need for ngValue
bindings$
will now throw an error since the $
prefix is used to mark async errorsngrxFormControlState
directive to a form element will now set the element's id
attribute to the ID of the state (thereby overriding any already present id
)isDirty
property for form controls is now not set automatically the first time the state's value changes, but instead it is set manually from the NgrxFormControlDirective
the first time the underlying FormViewAdapter
or ControlValueAccessor
reports a new value; this means if you were e.g. using the setValue
update function in your reducer before this will now not mark the state as dirty
anymoreaddControl
update function to addGroupControl
AddControlAction
to AddGroupControlAction
(also renaming its type
from ngrx/forms/ADD_CONTROL
to ngrx/forms/ADD_GROUP_CONTROL
)removeControl
update function to removeGroupControl
RemoveControlAction
to RemoveGroupControlAction
(also renaming its type
from ngrx/forms/REMOVE_CONTROL
to ngrx/forms/REMOVE_GROUP_CONTROL
)<a name="1.1.1"></a>
Changelog
1.1.1
updateGroups
function to properly accept multiple update function objects as written in the documentation<a name="1.1.0"></a>