In Angular context I'm working with custom Objects defined with an interface, let's say "a" and "b". I'm creating those as class attributes, as well as an empty array of those.
public a: CustomObj;
public b: CustomObj;
public array: CustomObj[]=[];
In the class constructor, I fill the array with a and b, at that time they have no values.
this.array = [a,b];
At some point I modify a or b (with ([ngModel]) binding), but when trying to access those objects through the Array, those are still "undefined".
Can someone explain why ?
Thanks.