Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
AngularJS

ng-click in AngularJS

Run expressions on click — usually call a controller method.

ng-click in AngularJS — a practical guide to AngularJS ng-click with clear examples you can reuse in real projects.

AngularJS Tutorial Series (33/99). Prefer one article? Read the complete AngularJS tutorial.

Short description

Pass $event when you need preventDefault.

ng-click

<button ng-click="vm.save($event)">Save</button>

Leave a reply

Your email address will not be published. Required fields are marked *