Andy,
Maybe, it’s just me, I just got back from the northeast. I understand how the scrolling code works. But it seems like Main($scope) is magically being called. I don’t see any ng-app, I don’t see any assignment of Main as a controller. If I change it from Main to Foo I get “Error: Argument 'Main' is not a function, got undefined” in the FF console. Am I missing something in jsFiddle?
Thx
--(jetlagged) dan
From: ang...@googlegroups.com [mailto:ang...@googlegroups.com] On Behalf Of Andy Joslin
Sent: Saturday, May 19, 2012 2:29 PM
To: ang...@googlegroups.com
Subject: [angular.js] Re: Infinite scrolling?
Dan, it's just that the scroll starts below the 0th item, so it automatically fires the event and adds more at start.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/wPf3jP4markJ.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
I’m not finding it (I’ve searched git code and the angular file referenced in the fiddle) and since Javascript (from what I’ve read and tried) does not have a Main method that autoexecutes, I’m now believing it to be nothing short of voodoo.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/FVSO3X8waCgJ.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
I found an issue with binding to the window as the binding will stay on the window even if I change screens/templates.Let's say I have a list screen/template, and bind on the scroll event of the window. Then I enter into a show/detail screen/template. the binding on window remains, and the corresponding handler will be called while scrolling in the show/detail screen.Does anyone have any hints or suggestions on this ? Is there a pattern for unbinding of events in angular ?Thanks!
On Friday, 6 July 2012 11:31:11 UTC+2, Eamonn O'Connell wrote:Another example of infinite scroll on the global window based on a JQuery plugin by Paul Irish. Doesn't quite work on JsFiddle, but is working in my app!http://jsfiddle.net/34m0/yw5n6/3/
On Friday, 1 June 2012 20:25:46 UTC+2, evaneus wrote:Here's another example, I fiddled with Vojta's one to make one that doesn't use absolute positioning and uses window.innerHeight to see if the div is at the bottom of the page. It's probably better to keep it more modular as in Vojta's one, but I thought I'd share for the sake of another example...
On Wednesday, May 9, 2012 10:48:36 AM UTC-4, LarryK wrote:
How can you push multiple items?So install of pushing one at time, can you push an array of multiple items, without the for loop?
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.