ExpressionChangedAfterItHasBeenCheckedError Explained
I had a similar issue. Looking at the lifecycle hooks documentation, I changed ngAfterViewInit to ngAfterContentInit and it worked.
I had a similar issue. Looking at the lifecycle hooks documentation, I changed ngAfterViewInit to ngAfterContentInit and it worked.
The correct syntax is the following: <div [innerHTML]=”theHtmlString”></div> Documentation Reference