I have some html data that I\'m loading in from a json file.
I am displaying this html data by using ngSanitize in my app and using ng-bind-html.
Now I woul
I still faced some issue with the compile, as that was not fulfilling my requirement. So, there is this, a really nice and easy hack to work around this problem.
We replace the ng-click with onClick as onClick works. Then we write a javascript function and call that on onClick event. In the onClick function, we find the scope of the anchor tag and call that required function explicitly.
Below is how its done :)
Earlier,
Now,
at the bottom or somewhere,
This should work now. Hope that helps someone :)
For more info, see here.