ngfor with limit code example
Example 1: ngfor limit to 10
{{item.text}}
Example 2: limit ngFor repeat to some specified items
*ngFor="let item of list | slice:0:10; let i=index"
{{item.text}}
*ngFor="let item of list | slice:0:10; let i=index"