Load component dynamically

0

How do I load a dynamic component depending on the module I'm seeing in Angular?

I want to have a sidebar that will display content according to the module.

For example: If you are viewing the Users module, I want to see the list of most active users, if you are viewing the Articles module, I want to see the best-selling and best-evaluated articles.

But I want to do this in the most generic way possible, something like an interface in which the module component implements this interface.

    
asked by anonymous 20.07.2018 / 01:58

0 answers