I have this elements here:
<a href="#item1" ng-click="myfunc('arg1', 'arg2')">Item1</a>
<a href="#item2" ng-click="myfunc('arg1', 'arg2')">Item2</a>
"myfunc" expects 2 incoming arguments. Now, I also need something else, which is the content of the href-attribute.
I could do one of the following
1 - Add a new argument to the function
2 - Add the event argument to read the content of href-attribute
However, in this application there seems to be many other places where the function "myfunc" is called. This means I would need to modify them to reflect the new argument list.
So what I wonder is if there is someway in the controller to know what attribute the calling element's href contains. Is that even possible?