I made 4 buttons with different background colors and I'm trying to make functionality when some of the buttons are clicked to change the image of the phone with the correct color. I've no idea how should I do it, I've tried for 5 hours and still nothing. Here are my html buttons, the logic in the methods are empty. Thank you!
<button class="card" style="height: 30px; width: 30px; background-color: palegoldenrod"
(click)="gold()"></button>
<button class="card ml-1" style="height: 30px; width: 30px; background-color: silver"
(click)="silver()"></button>
<button class="card ml-1" style="height: 30px; width: 30px; background-color: darkslategrey"
(click)="midnight()"></button>
<button class="card ml-1" style="height: 30px; width: 30px; background-color: grey"
(click)="spacegrey()"></button>

<button (click)="img='./assets/golden.jpg'">golden</button>