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...
That's a bit convoluted.
CAVEAT: This is very, very hacky and just absolutely exactly what you're NOT supposed to do in angular, but I guess you know that and the library is making your life hard...
But this alone won't make it work, because
someFunction() is not a method on the
document, but on the controller, so we need to get the controller first:
myController refers to the DOM element that is decorated with
<div data-ng-controller="SomeController" id="myController"> ... </div>
someFunction modifies the state of the view, you'll also need to use
Note that you don't need the