ebef5e697a
FormControls, FormGroups, and FormArrays now optionally accept an options object as their second argument. Validators and async validators can be passed in as part of this options object (though they can still be passed in as the second and third arg as before). ```ts const c = new FormControl(, { validators: [Validators.required], asyncValidators: [myAsyncValidator] }); ``` This commit also adds support for passing arrays of validators and async validators to FormGroups and FormArrays, which formerly only accepted individual functions. ```ts const g = new FormGroup({ one: new FormControl() }, [myPasswordValidator, myOtherValidator]); ``` This change paves the way for adding more options to AbstractControls, such as more fine-grained control of validation timing. |
||
---|---|---|
.. | ||
animations | ||
benchpress | ||
common | ||
compiler | ||
compiler-cli | ||
core | ||
docs | ||
examples | ||
forms | ||
http | ||
language-service | ||
platform-browser | ||
platform-browser-dynamic | ||
platform-server | ||
platform-webworker | ||
platform-webworker-dynamic | ||
router | ||
tsc-wrapped | ||
upgrade | ||
README.md | ||
empty.ts | ||
es6-subset.d.ts | ||
license-banner.txt | ||
system.d.ts | ||
tsconfig.json | ||
types.d.ts |
README.md
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
License: MIT