Is it possible to pass arguments to functions on AngularJS ng-click?
angularjs, javascript
Solution
Sure, that works.
`<a ng-click="myName('jz')">Click me</a>`
Here is a simple example:
http://jsfiddle.net/djYbC/1/
Problem
I've tried this however it has never worked. Any particular reason why, or examples of this working? I'm thinking: `ng-click="myFunction('test')"`