I´m trying to code a CRUD app with Angular.JS, and I need your help to move on. This is the scenario:
- View 1 (index) gets JSONP data from a remote API and stores it.
- View 2 (master) shows data filtered on a grid
- View 3 (detail) shows an specific item selected on View 2
I did it already, but requesting the very same JSON object on each view, , but I think one only api call is enough.
I can´t figure out how to properly share this JSON object for all the controllers. I tried several tutorials on ngResource, $http, factories and services but still have not a clear path to go through.
How can I do this?
Any snippet or code sample you may share will be very useful to keep on tryin this thing...
Thanks in advance,
Ariel