Saturday, July 21, 2012

AngularJS: Calling a Javascript Function in the Controller

This is done by using "ng-click".

Example assuming you already created a function in the controller called "doSomething":
<a href ng-click="doSomething()">Do It</a>

No comments:

Post a Comment