RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment