Load component dynamically

Asked

Viewed 83 times

1

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

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

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

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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.