I'm building an application with Angular 2. I am also using a database.
I get an error if I type this line of code:
"Cannot read property 'date' of null"
You can use safe navigation operator (
?). It protects template from
Read more about it here.