ngCourse2
ngCourse2 copied to clipboard
Update - Forms
Forms
- [x] Remove reference to Angular 1.x
Getting Started
Input Labeling
- [x] Second example not valid due to id being required for
Template-Driven Forms
Nesting Form Data
- [x] Example needs to have
- [x] Remove first bullet-point of not needing IDs
Using Template Model Binding
- [x] Show how the first example would look like in the UI?
Validating Template-Driven Forms
- [x] Doesn’t explain that the form obj can be valid/invalid
- [x] Show the value within an Angular component upon submission?
Creating Functional Forms
- [x] Remove mention of ex-Ranglers?
- [x] Should this example be reworked with Ngrx ?
The task for Input Labeling is talking about "id" and "for" attributes being required, in the second example the input tag is inside the label tag. The Mozilla docs says:
Alternatively, you can nest the <input> directly inside the <label>, in which case the for and id attributes are not needed because the association is implicit
Also this would be the case for the tasks under Nesting Form Data.