On button "I want to send and send the student object", so pls tell me how to associate the groupGroup object with the ModelClass object. Do not want to manually add data one by one to the variable. I need to bind one path not manually.
This is my groupGroup object
this.AMform = fb.group({
"Name": new FormControl("", [Validators.required, Validators.maxLength(10) ]),
"Code":new FormControl("", [Validators.required, Validators.maxLength(10) ]),
"Address": new FormControl("", [Validators.required, Validators.maxLength(10) ])
});
This is my model
class Student
{
public Name: string="";
public Code: string="";
public Äddress: string="";
}
coder source
share