Developing with AngularJS : Servcies | AngularJS | Scoop.it

Angular offers several ways to interact with data from the server. The easiest way is to use the$resource factory, which lets you interact with RESTful server-side data sources. When we started the My Dashboard project, we were hoping to interact with a REST API, but soon found out that it didn't have all the data we needed. Rather than loading the page and then making another request to get its data, we decided to embed the JSON in the page. For communication back to the server, we used our tried-and-true Ajax solution:DWR.


Via Jan Hesse