I'm researching about generic components (a.k.a. dynamic pages) that can be instancied by some string (i.e. "CustomerXComponent") from an object that i got from database and used on my Angular 5 application.
I found this library (ng-component-launcher) and it may fits with my necessities, but i can't find anything about Reflection or about instance components by string.
So, I really want to know if it's possible to instantiate a component by string, like with PHP, that I can include/require a HTML from path.
Thanks, Alexandre.
Aucun commentaire:
Enregistrer un commentaire