https://github.com/michael-small/unified-form-control-theorycrafting
Inspired by Angular 18's new forms API: Unified Control State Change Events
https://github.com/michael-small/unified-form-control-theorycrafting
angular forms reactive-forms
Last synced: 3 months ago
JSON representation
Inspired by Angular 18's new forms API: Unified Control State Change Events
- Host: GitHub
- URL: https://github.com/michael-small/unified-form-control-theorycrafting
- Owner: michael-small
- Created: 2024-04-07T01:55:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-18T02:25:48.000Z (almost 2 years ago)
- Last Synced: 2024-05-18T03:22:30.176Z (almost 2 years ago)
- Topics: angular, forms, reactive-forms
- Language: TypeScript
- Homepage:
- Size: 284 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UnifiedFormControlTheorycrafting
Inspired by [feat(forms): Unified Control State Change Events](https://github.com/angular/angular/pull/54579). More context given when running the app.
## Note - see this patched Stackblitz project about why this following "Open in Stackblitz" doesn't work properly. At least when it comes to the console logging of form events lagging out the whole app.
[Patched Stackblitz I forked that shows that logging the events works in v18 when run with this patch.](https://stackblitz.com/edit/v18-unified-control-state-change-dhiz7f?file=src%2Fmain.ts,README.md). Later I will port over the "Open in Stackblitz" to this little fork. Though I am not sure if the open button will apply the patch, as there seems to be an intermediate process that happens which tweaks the GitHub projects before running on Stackblitz.
[](https://stackblitz.com/github/michael-small/unified-form-control-theorycrafting?file=app.component.html)
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.3 and then updated to 18.0.0-next.3. Stackblitz may resolve it to a later version.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.