What is the purpose of ngFor directive?

Posted by Jessica Taylor | Updated on

We use Angular ngFor directive in the template to display each item in the list. For example, here we iterate over list of users:

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.

Related Questions & Answers