I have this ngClass directive:
[ngClass]="{checkFav(fullArtist) ? 'action-btn-added' : 'action-btn-not-added'}"
Where checkFav is a function. I get this error:
Error: Template parse errors: Parser Error: Missing expected : at column 10 in [{checkFav(fullArtist) ? 'action-btn-added' : 'action-btn-not-added'}]
What am I doing wrong? I read a lot of answers, all of them suggesting things I already done like using quotes.