Let's say I have three components like these ones here in my template
<app-student-dave></app-student-dave>
<app-student-olga></app-student-olga>
<app-student-jason></app-student-jason>
Now I have an array with all these names. So instead of using the names directly, I want to use the array. Something like this:
<app-student-{{myArray[selectedName]}}></app-student-{{myArray[selectedName]}}>
But string interpolation does not work this way. Any idea how implement this in angular2 and above?