Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Services Dependency Injection
Browse files Browse the repository at this point in the history
  • Loading branch information
amoshaviv committed Sep 7, 2013
1 parent f6e59d3 commit 1ca5d16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions public/js/services/articles.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//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'
}, {
update: {
method: 'PUT'
}
});
});
}]);
4 changes: 2 additions & 2 deletions public/js/services/global.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
angular.module('mean.system').factory("Global", function() {
angular.module('mean.system').factory("Global", [function() {
var _this = this;
_this._data = {
user: window.user,
authenticated: !! window.user
};

return _this._data;
});
}]);

0 comments on commit 1ca5d16

Please sign in to comment.