39
rated 0 times
[
40]
[
1]
/ answers: 1 / hits: 99836
/ 8 Years ago, sun, april 3, 2016, 12:00:00
Since the Limit filter is gone from Angular 2+, how can I apply a limit for a simple *ngFor statement?
<div *ngFor=#tweet of singleCategory>
{{ tweet }}
</div>
I don't want the *ngFor statement to loop through all the elements of singleCategory, I want to limit it to just 2 results. I believe that it could be done with Custom Pipes but I don't know how to implement it.
Thank you.
More From » angular