Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

How to pass dependency into sub-services ? #34

Open
destiny1020 opened this issue Aug 19, 2014 · 1 comment
Open

How to pass dependency into sub-services ? #34

destiny1020 opened this issue Aug 19, 2014 · 1 comment
Labels

Comments

@destiny1020
Copy link

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 !

@youyfeng
Copy link

i have the same issue too
any solution?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants