Managing plugins

We already built the core of the plugin architecture and a first plugin that runs in this system. We can use the plugins.js file on the root of our application to register plugins. The system is actually fully functional already. However, it would be nice to provide a way to manage our plugins during runtime.

In this section, we will build a new routable component, which will list all active plugins in the system. After we've done this, we'll also add some elements which allow users to unload active plugins as well as load new plugins during runtime. Due to the reactive nature of our plugin system, the browser does not need to be refreshed in order for newly-loaded plugins to become active. The moment a plugin is loaded, it will ...

Get Mastering Angular 2 Components now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.