Use ionic-infinite scroll with inonic popover

I am using ion-infinite-scroll distance=“1” on-infinite=“bindData()” with ionic pop-over I am geeting below error :
ion-popover-view Controller ‘$ionicScroll’, required by directive ‘ionInfiniteScroll’, can’t be found!

for it I injected $ionicScroll in my controller but after using this I am getting below error:

Unknown provider: $ionicScrollProvider <- $ionicScroll

Please tell me where I am wrong?

I had the same issue.
You don’t need to add $ionicScroll to your controller.
The problem is in your view. The doc says that it needs to be INSIDE a ion-content or a ion-scroll.