Reputation: 46479
I can't figure out a way how to do something like this:
<a href="http://google.com" ng-click="myFunc(this.href)">Link</a>
So essentially I want to pass href of clicked link as a parameter for myFunc
Upvotes: 0
Views: 575
Reputation: 77482
Try this
<a href="http://google.com/" ng-click="myFunc($event.target.href)">Link</a>
Upvotes: 5