angular-requirejs-seed
angular-requirejs-seed copied to clipboard
How to pass dependency into sub-services ?
trafficstars
I have learned how to declare sub services in this issue: #14
But I want to pass a dependency into the sub-service, for example:
define([], function (**DEPENDENCY_HERE**) {
return function () {
return {
/**
* @return {Object}
*/
get: function () {
return //code
},
/**
* @param {Object} task
*/
put: function (task) {
//code
}
}
}
});
How can I do such kind of thing ? Many thanks in advance !
i have the same issue too any solution?