Installing ngResource in Factory
Posted
by
rackhamup
on Stack Overflow
See other posts from Stack Overflow
or by rackhamup
Published on 2013-11-13T03:51:02Z
Indexed on
2013/11/13
3:53 UTC
Read the original article
Hit count: 380
angularjs
I am trying to install ngResource into a factory like so:
'use strict';
var DTapp = angular.module('DeviceTraining');
/* Services */
DTapp.factory('Slides', ['ngResource', function($resource) {
return $resource('slides/:slideID.json', {}, {
query: {method:'GET', params:{slideID:'slides'}, isArray: true}
});
}]);
But I am getting this error message:
Error: [$injector:unpr] Unknown provider: ngResourceProvider <- ngResource <- Slides
Any help?
© Stack Overflow or respective owner