What is the process for setting a dynamic name to an Angular 2 component?
Below is the code snippet from my template:
<{{component} [data]="data" [anotherData]="anotherData"></{{component}}>
I want to define the componentName in my class like this:
component: string = 'component';
However, I am currently facing the following error:
Uncaught (in promise): Template parse errors:
Unexpected closing tag "{{component}" ("