I'm trying to set up some basic error management in my app. I am using the Angular Tutorial Project as my base.
I'm getting into the console right now "there is no undefined function"
What am I doing wrong? PhoneControllers.controller ('ItemCtrl', ['$ scope', '$ stateParams', 'api_resource', function ($ radius, $ state page, API_resource) {$ scope.item = Api_resource ({Id: $ stateParams.id, api_resource: $ stateParams.api_resource_name}) .success (function (data) {console.log ("success")} .error (function (data) {console.log ("failure" }});}]);
No comments:
Post a Comment