We use Angular ngFor directive in the template to display each item in the list. For example, here we iterate over list of users:
1 2 3 |
<li *ngFor="let user of users"> {{ user }} </li> |
The user variable in the ngFor double-quoted instruction is a template input variable
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.