Hayward, Here is an POC plnkr http://plnkr.co/edit/rXW1el. 1 sec interval is too shot as we cannot predict http request turn around time. I did not do the repeater as i did not have data to repeat, let me know in what sense you are expecting the repeater to work, does it need to stack the previous reposes and repeat them or does the JSON have an array that needs to be repeated.
Regards, Kamal On Saturday, 29 March 2014 00:52:24 UTC+5:30, Christos Jonathan Seth Hayward wrote: > > I would like to have a proof of concept where, at 1 second intervals > (say), an AngularJS application makes an Ajax request and makes the > resultant object (from JSON) available to items in a particular scope, so > that a regular repeater can be used to build out HTML for part of the page, > based on the JSON. > > I'm not clear what is and isn't kosher while using the scope; it looks to > me like a setInterval function with appropriate closures could see the > scope that is desired. > > I'm a newcomer, and I'd appreciate any links or clarifications, as well as > code, clarifying "This is how it makes sense to do Comet with AngularJS". > > Thanks, > CJS Hayward > http://JonathansCorner.com > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
