Whenever I'm working on some task behind the scenes, I use a specific directive to disable buttons and prevent double submits. You can view the code for this directive here: http://jsfiddle.net/7nA3S/6/
Now, I am interested in enhancing this directive so that it can accept functions with arguments of any length.
While I understand the traditional Angular approach involves assigning necessary values to other attributes on the element, I am exploring if there is a more efficient way to achieve this. One option I am considering is:
<button my-submit='someFunction' args="arg1, arg2, arg3, ...">No Evals</button>
This would involve breaking up the string of arguments, but I am open to better alternatives that do not feel as clunky.