I am getting the error
on the below html template:
<p *ngIf="startDate()"><span [innerHTML]="startDate()"></span> to
<span [innerHTML]="endDate()"></span></p>
Below is my startDate
fn
startDate = () => {
if (this.session.history[0]) {
return this.session.history[0].date;
} else {
return "";
}
};
I looked into some threads, but not able to understand the problem or solution. Angular2 - Expression has changed after it was checked - Binding to div width with resize events
Ths solution says we need to use ngAfterViewInit
() here, but i am not really getting it.