I am currently working on an angular project where I am looking to display a series of buttons. When each button is clicked, I want it to display the corresponding button number.
Is there a way to pass a specific value in the event binding that can be used within the component for making decisions?
<button (click)="clicked('I want to pass a value here')">Click </button>
<h1>The button number you entered is: {{buttonNumber}}</h1>
The values could range from 1 to n and will be utilized for decision-making in the controller class.