mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-06 04:07:11 +02:00
Services Dependency Injection
This commit is contained in:
@@ -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'
|
||||
}
|
||||
});
|
||||
});
|
||||
}]);
|
||||
@@ -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;
|
||||
});
|
||||
}]);
|
||||
Reference in New Issue
Block a user