javascript - Angular 2 : Call component dynamically -


i build ionic 2 app use angular 2. want call component dynamically. want know if it's possible write somethink :

<my-comp-[var]><my-comp-[var]/> 

for example in ts file :

component: string = 'home'; 

and in html file :

<my-comp-{{component}}><my-comp-{{component}}/> 

what best way somethink ?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -