I need to pass an array of values to a component using binding, e.g.
@Component({
selector: \'my-component\',
template: \'
So lets's start from here... in Angular 2+ all input will pass down a string if they don't get brackets around...
So there are 2 ways to pass down your values...
if you write it like this: you basically get it as "[1, 2, 'test']" (as string)... The way you doing is a good way for passing down strings, and you can also use interpolation and mix it with javascript before passing it down like 'Angular {{version}}' So to pass it down as an Array or any javascript none-sting value, you need to use '
[]
around your input like this...