Ionic pull to refresh directive is not working

Whenever i try to use the ion-refresher directive, I get the following error thrown and the stack trace shows it’s from the bundled ionic JS file:

Error: [$compile:ctreq] Controller ‘$ionicScroll’, required by directive ‘ionRefresher’, can’t be found!$compile/ctreq?p0=NaNonicScroll&p1=ionRefresher
at VALIDITY_STATE_PROPERTY (http://localhost:8100/lib/ionic/js/ionic.bundle.js:7703:12)
at getControllers (http://localhost:8100/lib/ionic/js/ionic.bundle.js:14168:19)
at nodeLinkFn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:14337:35)
at compositeLinkFn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13730:13)
at nodeLinkFn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:14330:24)
at compositeLinkFn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13730:13)
at publicLinkFn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13626:30)
at updateView (http://localhost:8100/lib/ionic/js/ionic.bundle.js:42989:11)
at IonicModule.directive.directive.compile (http://localhost:8100/lib/ionic/js/ionic.bundle.js:42942:9)
at nodeLinkFn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:14336:13)

But on inspection of the ionic.bundle.js, the Controller is in fact present. I need help to squash this bug ASAP!

you have to put refresher in an ioncontent or ionscroll.

can you please post your template with refresher and which ionic version do use?

Ionic Version

Indeed, the ion-refresher was not inside either an ion-content or ionscroll directive. But when i did put it within an ion-content directive, i still had the same errors.

This pen has my template structure:

Hi @bengtler,

My bad, I was editing a duplicate file, you were right, i just had to move the ion-refresher into an ion-content directive.