I want to call a function, when the last item is about to be displayed.
<div *ngFor="let el of arr">
{{ el }}
<div>
arr
is defined as
public arr = [1,2,3,4];
How could I call a funtion after the last item is about to be displayed?
This would be interesting for large data structures with thousands of elements.