I want to populate the button click from interface value for example
interface IButton {
    buttonClickValue: string
}
export class Button implements OnInit {
     toolBar: IButton = {
       buttonClickValue: "onCML"    //I also tried this onCML()
     }
     constructor() {}
    ngOnInit(): void {          
    }
    onCML(){    
      alert("Alert should appear on click!!!");
    }
 }   
Here is my frontEnd button where I would like to bind the interface value to the button click
<a class="btn btn-primary" (click)="toolBar.buttonClickValue">My Button</a>
However when I click on the button nothing happens I would like to see the alert. Thank you for your help.