I have an array of colors that I would like to pass to child component.
colors = ['#1e88e5', '#e53935', '#757575'];
I can do it as above with the hardcode hex values, but is there a way that I can use the global variable instead like below.
colors = [$primary, $secondary, $normal];
Since I would like to use the global variable on the component and not on the scss, I am not sure how can I use it.
Any help is appreciated.
Thanks
charts. Is there a way I can use that global variables in .ts file