I am working on a project using angular 2 and typescript.
I am looking to customize the background color of my buttons based on a variable.
<div>
<button md-button>1. Choose travel</button>
<button md-button>2. Choose seats</button>
<button md-button>3. Fill data</button>
<button md-button>4. Pay</button>
</div>
Inside my component, I have a variable:
currentStep: number = 1; //1 Select travel, 2 Choose seats, 3 Fill data, 4 Pay
For instance, when the currentStep is 3, I want the third button to have a blue background color.
What is the most effective way to accomplish this?
Thank you.