Presently, I am in the process of developing an application using Angular 2 and integrating it with a database. However, a particular line of code is causing an error:
<span class="col-sm-6">{{workorder.timeWindowAppointment.date}}</span>
The specific error message reads:
"Cannot read property 'date' of null"
I understand that this error is valid because the date property does not exist at the moment. Nevertheless, I plan to include a date property in the future.
My goal is for Angular 2 not to generate an error, but simply display nothing on the page instead.