build-your-own-angularjs icon indicating copy to clipboard operation
build-your-own-angularjs copied to clipboard

P442 need to keep `invoke` function second argument to be passed

Open hjzheng opened this issue 8 years ago • 0 comments

var instance = instanceCache[name] = invoke(provider.$get);

I think the right code is:

var instance = instanceCache[name] = invoke(provider.$get, provider);

hjzheng avatar Jan 17 '17 07:01 hjzheng