Thanks! This looks like it will give me something to chew on.

On Sat, Mar 29, 2014 at 2:29 AM, Kamal <[email protected]> wrote:

> 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.
>



-- 
[image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/>
Christos Jonathan Seth Hayward, an Orthodox Christian author.

Amazon / Kindle <http://amazon.com/author/cjshayward> * *Author
<http://cjshayward.com/>* * Author Bio <http://jonathanscorner.com/author/>
 * *Email <[email protected]>* *
Facebook<http://www.facebook.com/christos.jonathan.hayward>
 * Fan Page <http://fan.cjshayward.com/> * Google
Plus<http://jonathanscorner.com/plus>
 * LinkedIn <http://www.linkedin.com/in/jonathanhayward> * *Professional
<http://jonathanhayward.com/>* * Twitter<http://twitter.com/JonathansCorner>
 * *Web <http://jonathanscorner.com/>* * What's
New?<http://jonathanscorner.com/>
If you read just *one* of my books, you'll want *The Best of Jonathan's
Corner <http://www.amazon.com/dp/1478219912>*.

-- 
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.

Reply via email to