In the export class of my component, I have a string array variable declared like this;
barChartLabel:string[] = ['2006', '2007', '2008', '2009', '2010', '2011', '2012'];
To display this on the screen in my HTML template, I use the following code:
{{barChartLabel}}
However, when I try to pass it as a parameter value, it fails, as shown below:
<mychart [chartLabelObject]="[{{barChartLabel}}]"></mychart>
Do you have any idea what mistake I might be making?