2

I saw both possibilities *ngTemplateOutlet and [ngTemplateOutlet]. Is there a difference? According to https://angular.io/api/common/NgTemplateOutlet *ngTemplateOutlet is correct. But both seems to work fine.

TheAnonymousModeIT
  • 777
  • 1
  • 6
  • 18
  • 4
    Does this answer your question? [Angular 2 why asterisk (\*)](https://stackoverflow.com/questions/40078189/angular-2-why-asterisk) – TotallyNewb Aug 20 '21 at 13:47
  • yes, thank you. summary: The asterisk is "syntactic sugar". It simplifies ngIf and ngFor for both the writer and the reader. Under the hood, Angular replaces the asterisk version with a more verbose form with []. – TheAnonymousModeIT Aug 20 '21 at 14:17

0 Answers0