Ionic ng-click and href issues with content outside the initial visible part


I have some views where users have to scroll up and down to see all the content.
ng-click and href seems to be fixed to the screen instead of the each item,
because when I click an item after scrolling, the function or href for the item that was on that position on initial page load gets fired.Not the item that is currently displayed there.

Does anyone know how to work with ng-click and href for items outside the initial page load.

Thank you.