Cant seem to get ioninfinite scroll to work

i keep getting this error when i try to use ioninfinite scroll

something seems to be broken or maybe i am not importing something

It’s super hard to tell via the screenshots (please prefer to post text), but from the looks of it you’ve defined doRefresh inside of a function. If so, you need to move it outside and into the controller.

lol yea i totally didn’t notice that thanks