• [ ]
<ul>
    <li [ngFor]="let productName of productNames">
    {{ productName }}
    </li>
</ul>
  • [ ]
<ul>
    <li ngFor="let productName of productNames">
    {{ productName }}
    </li>
</ul>
  • [x]
<ul>
    <li *ngFor="let productName of productNames">
    {{ productName }}
    </li>
</ul>
  • [ ]
<ul>
    <? for productName in productNames { ?>
    <li>{{ productName }}</li>
    <? } ?>
</ul>

By Neha S

Leave a Reply

Your email address will not be published.