Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function res($resource) {
- return $resource('/someurl/:id', {id:'@id'});
- }
- function actionCtrl(Entry){
- this.entries = Entry.query();
- console.log(entries);
- }
- angular.module('controllers',['ngResource']).factory('Entry',['$resource',res]).controller('actCtrl',['Entry',actionCtrl]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement