Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDeclaring factory providers should be as easy as declaring class providers #6105
Comments
|
This is indeed nicer, unfortunately we can't emit metadata on functions. We lack typescript support here. |
|
Support for this can be added to Webpack as a plugin or a transform (think ng-annotate) until there is TypeScript support |
|
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It would be awesome if instead of this:
I could just write this:
Not sure how feasible it is (given the decorators spec doesn't allow for decorating plain functions IIRC), but figured I'd let my preference be known...