-4

Working on angular project where i need to execute a function on an element clicked using ng-click. Using ng-click on any element won't fire the function except when i use (click) eg Box 1 -- this does not work Box 1 -- this works

so where exactly is ng-click useful?

Thank You

R. Richards
  • 24,603
  • 10
  • 64
  • 64
Father-Empire
  • 539
  • 4
  • 9

1 Answers1

0

There is no ng-click in Angular.

Perhaps you're looking for `on-click="function()"

https://angular.io/guide/template-syntax lists the canonical forms for bindings.

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567