I have a template which looks like:
scope:{
localClickFunc: "&click",
myLocalDbClickFunc: "&dblclick"
} ...
<myButton ng-click="localClickFunc($event)" ng-doubleckick="myLocalDbClickFunc($event)"/>
there are many other events (mouseover etc)
my localClickFunc are binded in scope directive with controller functions(they could be binded with "=" for my case It doesn't matter).
The problem is that in the usage of this 'myButton' directive not all attributes are necessary .If I use it with all the other events will get registered and fired through angular to a noop function.
I can have as many as 1000 buttons on the screen .What would be the solution to this ?. Are there conditional templates ?