So I'm trying to use the GAE Channel API with Angular.js to do real-time data-bound updates (which would be really cool, right!?). I'm told the correct way to do this is to wrap the Channel API Javascript Client in an Angular.js service (and make sure to use $apply()). But what does that mean exactly?
To my understanding, for the Channel API, I'm pretty much supposed to have a 1:1 client:channel connection, so all my updates will have to flow down that one channel for all the models in my entire app. How do I then broadcast to possibly multiple scopes that a model (generally an ngResource) has been updated? $watch? $emit? $broadcast? $digest?
I had the same requirement and solved it with an Angular service. I described my solution here :
http://david-codes.blogspot.com/2013/03/app-engine-channel-api-and-angular-js.html