aurelia / documentation

The documentation for Aurelia.
MIT License
105 stars 111 forks source link

give examples of how to use all of the DI resolvers #343

Open dkent600 opened 7 years ago

dkent600 commented 7 years ago

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?).

Alexander-Taran commented 6 years ago

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

dkent600 commented 6 years ago

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

Ryuno-Ki commented 4 years ago

@dkent600 Friendly ping :-)

dkent600 commented 4 years ago

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...

Ryuno-Ki commented 4 years ago

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.