Reputation: 1
onClick function name want it to pass from backend
Upvotes: -1
Views: 226
Reputation: 3850
Provided that there is a public function on the Controller named myFunction()
, this should work:
<button type="submit" (click)="myFunction()"> </button>
Upvotes: 0