Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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
 
PREVIOUS NEXT
Tagged: #reactive #forms #control
ADD COMMENT
Topic
Name
9+7 =