documentation icon indicating copy to clipboard operation
documentation copied to clipboard

give examples of how to use all of the DI resolvers

Open dkent600 opened this issue 8 years ago • 5 comments

Regarding this article: http://aurelia.io/hub.html#/doc/article/aurelia/dependency-injection/latest/dependency-injection-basics/6

It could be great to have examples of all the uses of DI resolvers, showing, for each resolver type, 1) how to declare the dependency and 2) how to instantiate a model that has a dependency with the resolver type (using container.get, and new).

It is like pulling teeth to figure out how to use the Factory resolver type (will I have to look at the Aurelia unit tests to find an example?).

dkent600 avatar Jun 10 '17 16:06 dkent600

@dkent600 can you provide a PR to help improve the docs on this subject?

Alexander-Taran avatar Mar 01 '18 17:03 Alexander-Taran

@Alexander-Taran At the moment I have very little extra time. But will keep this in mind! I would like to help.

dkent600 avatar Mar 01 '18 18:03 dkent600

@dkent600 Friendly ping :-)

Ryuno-Ki avatar Apr 05 '20 20:04 Ryuno-Ki

Thanks for the ping. Sorry, as events have turned in my last two years, it is not going to be feasible for me to work this...

dkent600 avatar Apr 05 '20 21:04 dkent600

But you're referring to http://aurelia.io/docs/fundamentals/dependency-injection#resolvers ? Since I'm getting my hands dirty with Aurelia right now as well, I might pick this up then.

Ryuno-Ki avatar Apr 06 '20 08:04 Ryuno-Ki