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.