I am creating a directive <chart>
in AngularJS. I want to add a attributes x-series
and y-series
to it.
A requirement is that these attributes should take multiple parameters like x-series="xData1 xdata2 xdata3"
and y-series="ydata1 ydata2 ydata3"
.
How do I resolve the different values of x-series and y-series attributes? I can do it by splitting the values of scope.xSeries
and scope.ySeries
by space but I want to know that if Angular provides any better way to specify attribute with multiple values.