Urvesh Dhangar
Urvesh Dhangar

Reputation: 1

How to bind variable value declared in an Angular component as a (click) function name?

onClick function name want it to pass from backend

Upvotes: -1

Views: 226

Answers (1)

LuckyLikey
LuckyLikey

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

Related Questions