← BYTES
AngularJS·Starter·Ref: 5.1.9

What does the ng-click directive do?

Have a question about this video? Mention reference 5.1.9 when you contact us.

a.It runs a function once when the page loads
b.It attaches a click event handler that runs the given expression/function when the element is clicked
c.It disables clicking on an element
d.It styles an element to look clickable
ng-click="someFunction()" wires up a DOM click listener that, when fired, evaluates the given AngularJS expression (typically calling a scope method) within the current scope.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES519#AngularJS