How use ngResourse in services.js


#1

I add in index.html
src=“lib/ionic/js/angular/angular-resource.min.js”

also in services.js add

angular.module(‘starter.services’, [‘ngResource’])

but I can not get a response in the controller
$scope.card = Card.get({cardId: $stateParams.cardId});

may be necessary to adjust the project should Cordova?


#2

I think you’re going to need to put together a CodePen sample of this. It’s pretty difficult to figure out what might be wrong just from that sample.


#3

Thanks, I’m complete task. Need add to function controller

.controller(‘CardListCtrl’, function($scope, Card){

}