I have an attribute directive restricted as follows:
restrict: \"A\"
I need to pass in two attributes; a number and a function/callback, a
This worked for me and I think is more HTML5 compliant. You should change your html to use 'data-' prefix
And within the directive read the variable's value:
scope: { number : "=", .... },