I want to build something like qz.com
The url changes(without page refresh) when you scroll down and the data gets appended to the last post. Trying to build it over angular-express-seed.
Any pointers or tutorials will help.
EDIT: Found a fiddle here http://jsfiddle.net/fotuzlab/nES2q/ (forked from original)
elm.bind('scroll', function() {
if (raw.scrollTop + raw.offsetHeight >= raw.scrollHeight) {
scope.$apply(attr.whenScrolled);
}
});
Seems it can do the job but now elm.bind is not working for some reason. Any other method to so this?