No provider for TemplateRef! (NgIf ->TemplateRef)

I’m trying to show a checkmark if an answer is the accepted answer:

template: `<div ngIf="answer.accepted">&#10004;</div>`

But I get this error:

EXCEPTION: No provider for TemplateRef! (NgIf ->TemplateRef)

What am I doing wrong?

2 Answers
2

Leave a Comment