Skip to content
Advertisement

Angular: render section list data using *ngFor

Is there any way to display section list in Angular using *ngFor? All examples I found are using separate loops for separate sections. Thank you!

JavaScript

Expected UI: enter image description here

Advertisement

Answer

You may use the following code on the template:

JavaScript

Tweak the styles accordingly.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement