I have this model
export class model{
Id: string;
Name: string;
home: Home[];
}
export class Home{
street: string;
country: string;
CP: string;
}
the question is how to use the values of model Home in father model and use the values in a form to insert new register for example:
<form>
<input type="text" ([ngModel])="model.id">
<input type="text" ([ngModel])="model.Name">
<input type="text" ([ngModel])="model.Home.CP"><!--How to implements the values of home to insert a value in the BD-->
</form>
thanks