Expands ng-filter to add paging and backend loading.
Why not just use AngularJS built in ng-filter directive? This module uses that but adds a few features:
- handles paging / loading more (i.e. when scroll to bottom)
- can be used with a backend lookup call to load more results AND a queue is used so the NEXT page's items are ALREADY loaded - the backend / AJAX call is done right AFTER the previous page load so it should always be pretty fast.
http://jackrabbitsgroup.github.io/angular-lookup/
- required:
- angular >=1.2.0
- optional:
- lesshat >=2.0.4
See bower.json and index.html in the gh-pages branch for a full list / more details
- download the files
- Bower
- add
"angular-lookup": "latest"to yourbower.jsonfile then runbower installOR runbower install angular-lookup
- add
- Bower
- include the files in your app
lookup.min.jslookup.lessORlookup.min.cssORlookup.css
- include the module in angular (i.e. in
app.js) -jackrabbitsgroup.angular-lookup
See the gh-pages branch, files bower.json and index.html for a full example.
See the lookup.js file top comments for usage examples and documentation
https://github.com/jackrabbitsgroup/angular-lookup/blob/master/lookup.js