8๐
โ
Add the following property:
private donutColors = [
{
backgroundColor: [
'#ced',
'#fda',
'#fdd',
]
}
];
Note that this is an array, not an object
Then, add the following property in the template
[colors]="donutColors"
Source:stackexchange.com