I'm currently trying to see if in Angular 2 we can create dynamic selectors/html tags. For example, I want to do something like this:
@Component({
selector: 'my-app' + 'variableName',
template: `
<container> </container>
`,
directives: [ContainerComponet]
})
So that I could do something like:
<my-app + {{variableName}}> <!-- the variable name would be coming from a public variable inside my component-->
In a way, the implementation of my component needs to happen several times, I know I can copy/paste what I have and have multiple components however I feel there has to be a smarter way to go.