This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14329|Reply: 0

[Angular] Angular2 about *ngFor nested loops

[Copy link]
Posted on 5/31/2019 2:47:47 PM | | | |
The data obtained in project development is like this, and it must be looped and traversed. But in ng2 it seems that you can't traverse the Object directly

After searching, I found that this method can be implemented.

array-ngfor.ts


array-ngfor.html

The focus is on this approach

Outcome:






Previous:VS and VS Code go back to where they were last clicked
Next:Page issues after discuz login is successful
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com