I know in Angular you can dynamically add a class to the element but how do I change the value of a property? I want each button to be the next spotColour of the array. I feel like my example explains it well:
<button style="background-color: arrThemes[0]['spotColour']"></button>
<button style="background-color: arrThemes[1]['spotColour']"></button>
<button style="background-color: arrThemes[2]['spotColour']"></button>
arrThemes = [
{spotColour : 'rgb(238, 68, 136)', baseColour : 'rgb(80, 54, 78)'},
{spotColour : 'rgb(179, 165, 136)', baseColour : 'rgb(88, 67, 59)'},
{spotColour : 'rgb(87, 167, 82)', baseColour : 'rgb(47, 68, 46)'},
];