November 2019
Beginner
804 pages
20h 1m
English
It was interesting to discover the SL pattern, but, as we've seen, it isn't ideal. As a matter of fact, there are better ways for us to integrate InversifyJS.
As we've already discussed, the main issue of integrating InversifyJS and Vue.js is the fact that Vue handles the construction of the class instances, making it impossible for us to use constructor injection, and forcing us to use definite assignment assertions.
Let's discover and use the inversify-inject-decorators library (https://github.com/inversify/inversify-inject-decorators). This library provides a set of decorators that add support for lazy injection of InversifyJS-managed dependencies. With it, we will be able to declare our dependencies through ...
Read now
Unlock full access