diff --git a/public/js/services/articles.js b/public/js/services/articles.js index 239f6dc2..2d496701 100644 --- a/public/js/services/articles.js +++ b/public/js/services/articles.js @@ -1,5 +1,5 @@ //Articles service used for articles REST endpoint -angular.module('mean.articles').factory("Articles", function($resource) { +angular.module('mean.articles').factory("Articles", ['$resource', function($resource) { return $resource('articles/:articleId', { articleId: '@_id' }, { @@ -7,4 +7,4 @@ angular.module('mean.articles').factory("Articles", function($resource) { method: 'PUT' } }); -}); \ No newline at end of file +}]); \ No newline at end of file diff --git a/public/js/services/global.js b/public/js/services/global.js index 0c636e0c..95eb0117 100644 --- a/public/js/services/global.js +++ b/public/js/services/global.js @@ -1,4 +1,4 @@ -angular.module('mean.system').factory("Global", function() { +angular.module('mean.system').factory("Global", [function() { var _this = this; _this._data = { user: window.user, @@ -6,4 +6,4 @@ angular.module('mean.system').factory("Global", function() { }; return _this._data; -}); \ No newline at end of file +}]); \ No newline at end of file