-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autoInject - dependency injection for auto. #608
Conversation
Pretty cool, definitely would clean up uses of |
The first I originally had the callback at the end of the function, but I changed it for two reasons:
It made the implementation a little cleaner too, though I don't really regard that as a motivating factor. A couple of my own points about the implementation:
|
BTW, I'm liking this more as I think about it. It'll just have the same minification caveats as Angular. It'll be really handy in server-side code. |
Yeah, server-side and Node scripts were mostly what I was thinking about when I wrote this feature. And I notice in #957 that you are planning to always have the callback last. Should I make that change here or were you planning to make it yourself after merging? |
Yeah, I'd prefer to always have the callback be the last argument. No sense in doing it one way if we're just going to turn around and change it soon after. |
Closing in favor of #1055 |
Dependency injection support for auto, for better readability of task graphs.