<div *ngFor="let city of
israelCitieService.data|mychoosedcities:wordSerched;let i=index"
</div>
I am trying to find out how to access the length of the array generated by the pipe. The index (i) is only accessible within the div element. How can I bind it to my component? Thank you for your help.