SL using InversifyJS and reflect-metadata

Let's make this more concrete with an example. We will create a simple Vue application with the following component tree:

This application will simply render a DriverSFC component, which will display a message on the screen. To do so, it'll need to get/use a Driver object.

The Driver instance will, of course, need to be created, but the DriverSFC component will not know how to do so. As a matter of fact, the Driver instance will be created by InversifyJS and will be the only one that knows how to construct it.

To spice things up a bit, in order to create a Driver instance, InversifyJS will have to ...

Get Learn TypeScript 3 by Building Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.