Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling angularjs scope function from href

I am using a library which appends a href element onto an tag. On this link I need to make a call to an angularjs function that is within scope. Something like...

<a href="{{someFunction()}}"></a>

Note: I am attaching this href via javascript from another library (nvd3.js) not actually writing this in because if I was I could easily use ng-click or ng-href.

like image 710
user1200387 Avatar asked Jan 08 '14 17:01

user1200387


1 Answers

You should probably use ng-click here.

like image 69
gat Avatar answered Sep 21 '22 03:09

gat