Answers for "reactive forms get value of control"

2

reactive forms get value of control

/*-----Angular reactive forms-----*/
// declare a form with properties i.e. name
this.form = this.formBuilder.group({
    name: ['', Validators.required]
});
// Get value
this.form.get('name').value
Posted by: Guest on April-27-2021

Code answers related to "reactive forms get value of control"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language