I am trying to get a component dynamically from a string depending on the client.
import { C22Component } from '../client/c22/c22.component';
import { C26Component } from '../client/c26/c26.component';
@Component({
  selector: 'special-client',
  template: '<div #specialView></div>'
})
export class SpecialClientComponent {
  @Input() clientId:number;
  getComponent() {
    return `C${this.clientId}Component`;
  }
}
I tried to use the eval() function but it did not work.
Thank you.
