I've been searching for a solution to this issue, but so far nothing has worked for me.
When I try to pass a function to the ngStyle directive, I encounter the following error:
The expression 'getClass()' in ProductView has changed after it was checked.
This is how my template looks like:
<div class="itemContainer">
<div class="well imageHolder" [ngClass]="getClass()">
<img [src]="'img/thumbs/' + item.images[0]" class="productImage" id="productImage">
</div>
</div>
I'm not sure what could resolve this issue or if it's even possible to do so at the moment. I have also noticed that this error occurs with ngStyle as well.
Any assistance would be greatly appreciated.