Why are my data model values undefined after data is stoed in Angular