We loop over each control, which in this example is a FormGroup, and pass it to the formGroup directive. The context for each instantiated template inherits from the outer context with the given loop variable set to the current item from the iterable. array-gen.component.ts . The HTML ul li tag helps ngfor to iterate over a collection of data and display on the front-end of the application, which is an angular… The reason Angular 4 changed