I have an angular charComponent that creates pie, and line and other graphs which I want to embed in various places in my app.
I use the selector:
<chart></chart>
To expose a chart.
What I want to do is embed a variable into the code so I can tell the component what chart I want returning.
So something like this:
<chart variable="pie-chart"></chart>
Is something like this possible or is there a better way to do it?