I would like to create an abstract base component which contains the html template. Methods in the concrete classes extending the base component would supply the data and some other details needed by the base class to create the component.
I would like for the base component to be able to get the name of another component from the concrete component that is to be added to the html template.
For example the base component might include a template html that looks something like this:
<div>Base Component</div>
component: <{{getSelectorName()}}></{{getSelectorName()}}>
getSelectorName() could be "ABC-comp" for one concrete implementation and "DEF-comp" for another. Please note that I am just using the {{}} notation for illustration purposes.
Is this possible? How would one go about doing that?
Thank you!!!
{{}}is for attribute and property binding and invalid everywhere else. Dynamic component selectors are not supported.