Skip to main content

Posts

Showing posts with the label Angular 4 nested loops

Angular 5 and 4 nested loops - ngFor

Nested loops - In this article I’m sharing with you for nested level of loops in Angular 5 and 4. You can see in the following steps. Stayed Informed  –  Angular 5  and  Angular 4 Documents The Array collections is –   users = [     { name: "Anil Singh" , qualification: [ "B.Sc." , "MCA" , "MCTS" , "MCP" ]},     { name: "Reena Singh" , qualification: [ "B A" , "M A" , "BTC" ]}   ]; The Loops on above array – < table * ngFor = "let user of users" >   < tr >     < td > {{user.name}} </ td > < td > - </ td >   </ tr >   < tr * ngFor = "let qualifica of user.qualification" >       < td ></ td > < td > {{ qualifica }} </ td >   </ tr >     </ table > The full example as following – app.module.ts - import { BrowserModule ...