I'd like to write in my template something like :
<span>{{myObject.myField}}</span>
However myObject is initialized in my ngOnInit, and my object seems to still be null when the page is rendered because I have the following error
NullError: method not found: 'myField' on null
If I only put in my template
<span>{{myObject}}</span>
I can see the value of myObject.
Is there a way to initialize my object before OnInit ? Is there another way to display my data ?
Thanks for your help.