Question: why ngfor is used in angular?
Answer: NgFor is a built-in template directive that makes it easy to iterate over something like an array or an object and create a template for each item. ... of users means that we'll be iterating over the users iterable that should be made available in our component. The * character before ngFor creates a parent template.