I have UserData that that is read from a different page as above. The data is available and being used in the home.html page BUT, when I console I get undefined.
Since it’s available at html level, how can I read it in the home.ts file?
console.log(UserData);
@MattE,
sorry it took me quite long to reply to you. I got the solution that involves event listeners. the home.htm/ts recieves data from another page, initpage.ts
Although I still not get why I am not able to get data for user UserData
//declared at home.ts @Input(“UserData”) UserData: User[ ];
lf i log UserData it will result to undefined, but available for use in home.html