I’ve looked at lots of tutorials on the internet, and none of they show you a fully functional
infinite scroll.
Heres My full Example:
HTML
1 | <ion-content> |
JS Controller
1 | ; |
AJAX Request
1 | { |
Angular Service
1 | function listService(baseUrl, $q, $http){ |
Some Issues I faced when using other methods are:
- double loading row when there is only 1 row
- double loading no results found
- loading uncontrollably
- if loading lots of rows, the last row will appear below your tabs if you have them. The solution is add
<br/>
to the bottom of<ion-content>
Some features you may consider that aren’t shown here are:
- what to show when you have no internet connection
- what to show when server is down
Also make sure you add br to the end of ion-content or padding bottom since the scroll view will cut off the last row in the list on your phone. You won’t see this error in your browser but it will happen on your phone.
Hope this helps you out