Vote count:
0
I've made a state linked for my contacts.
state('contactsdetail',{ // single contact
url: '/contact/:contactId',
templateUrl: 'contacts.detail.html',
controller: 'contactCtrl'
}).
What is the cleanest pattern to link ui-router and ngResource so that a state loads a resource as my state changes contact Id?
(ideally I'll cache my contact Id to check if the required contact is already loaded before asking for a new one - but this is not essential)
I've googled but cant find a simple example linking these two together
help much appreciated!!
asked 40 secs ago
Best pattern to link angular ui-router and ngResouce
Aucun commentaire:
Enregistrer un commentaire