I'm trying to pass a simple array through an input to a component : [1,2,3,4,5]
For some reason it is not staying as an array but as a string when it passes through.
My type is @Input() data: any
I'm trying to pass a simple array through an input to a component : [1,2,3,4,5]
For some reason it is not staying as an array but as a string when it passes through.
My type is @Input() data: any