ng-click attribute on angularjs directive
问题 I think it should be easy to use the well known angular attributes on a directive out of the box. For example if the name of my directive is myDirective I would like to use it this way: <div ng-controller="myController"> <my-directive ng-click="doSomething()"><my-directive> </div> instead of needing to define a custom click attribute (onClick) as in the example below <div ng-controller="myController"> <my-directive on-click="doSomething()"><my-directive> </div> It seems that ng-click can work