November 2019
Beginner
804 pages
20h 1m
English
Now that we have a good understanding of the limitations of Vue's current DI system, we can take a look at alternatives and possible improvements.
One thing that we can do to improve the code is to leverage a third-party dependency injection library. In this section, we'll be using InversifyJS (http://inversify.io), a lightweight DI library written in TypeScript that acts as an IoC container.
InversifyJS supports setter injection and using symbols, just like Vue does, but it is much more powerful as it also supports the following:
By using InversifyJS, we will ...
Read now
Unlock full access