Reactive
List of Forms
- Prototype
- form-control
- form-control-class
- form-group
- form-builder
- form-builder-nested
- form-array
- form-multi
Template Driven
Form Control
Form Group
Form Builder
Result With formControl
ExampleForm1 : Value
name : "Darth Vader"
email : "darthvader@starwars.com"
job : "Sith"
comment : "Father of Luke Skywalker"
Reactive Form with FormControl
Name
Email
Job
- Jedi
- Sith
Comment
SetValue
Reset
Result with FormGroup & FormControl
ExampleForm2 : Value
{
"name": "",
"email": "",
"job": "",
"comment": ""
}
Reactive Form with FormGroup & FormControl
- Name
- Job
- Jedi
- Sith
- Comment
| Friends |
|---|
- SetValue
- PatchValue
- Reset
Result with FormBuilder
ExampleForm3 : Value
[object Object]
Reactive Form with FormBuilder
- Name
- Job
- Jedi
- Sith
- Comment
| Friends |
|---|
- Load
- Reset