angular.js - angularjs2 how to nest multiple levels of loops
怪我咯2017-05-15 17:07:24
0
1
758
In angularjs2, *ngFor is an instruction to implement loops. In practice, it was found that multiple levels of loops cannot be nested. If you want to implement more than 2 nested loops, how should you implement it
You can implement nested loops with multiple ngFors. It mainly depends on how your data format corresponds.
Data format:
Code example: