
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ngx-typesafe-forms
Advanced tools
Because
FormControl<T>is more awesome thanFormControl!
If you are using Angular 14 or higher, there is no need for using this library. Instead, we recommend you to use the default Angular type-safe forms in that case.
If you still want to use some of the additional features mentioned below, we recommend version 2.0 of this library, which is compatible with Angular 14.
| Angular version | Version |
|---|---|
| Angular 16 | 2.2.x |
| Angular 15 | 2.1.x |
| Angular 14 | 2.x.x |
| Angular 13 | 1.6.x |
| Angular 12 | 1.5.x |
| Angular 11 | 1.4.x |
| Angular 10 or lower | 1.3.x |
A small library to make Angular Forms more type-safe!
FormControl, FormGroup, FormArray and ControlValueAccessor@angular/forms and existing Angular libraries!value$, valid$, pristine$, errors$, enabled$ and more.ControlValueAccessorAngular Forms are not very type-safe (at least, up until Angular 13). This library makes your form code more type-safe. More type-safety means smaller risks for bugs!
npm install ngx-typesafe-forms
yarn add ngx-typesafe-forms
Just import your FormControl, FormGroup, FormArray and ControlValueAccessor
from ngx-typesafe-forms instead of @angular/forms and you are done!
Besides the type-safety, we also provide additional reactive properties.
const myControl = new FormControl<string>('bar');
// subscribe to all values, including the existing value!
myControl.value$.subscribe((value) => {
/* ... */
});
// subscribe to validity changes, including the existing valid state!
myControl.valid$.subscribe((valid) => {
/* ... */
});
The recommended properties are:
value$errors$enabled$pristine$valid$status$validValue$rawValue$Additionally, we also provide some of their counterparts:
disabled$dirty$invalid$NOTE: all of these streams also include the current (initial) values.
Thanks goes to these wonderful people (emoji key):
Dirk Luijk 💻 📖 | Daan Scheerens 🤔 | Jur Balledux 🐛 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
Because FormControl<T> is more awesome than FormControl
We found that ngx-typesafe-forms demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.