No provider for TemplateRef! (NgIf ->TemplateRef)

Discussão em 'Angular' iniciado por Mark Rajcok, Novembro 13, 2024.

  1. Mark Rajcok

    Mark Rajcok Guest

    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?

    Continue reading...

Compartilhe esta Página