I have simple directive, like this:
angular.module('docsTemplateUrlDirective', [])
.controller('Controller', ['$scope', function($scope) {
$scope.customer = {
name: 'Naomi',
address: '1600 Amphitheatre'
};
$scope.clicke = function(){
alert('test');
};
}])
.directive('myCustomer', function() {
return {
templateUrl: 'my-customer.html'
};
});
index.html
<div ng-controller="Controller">
<div my-customer click-event='clicke()'></div>
</div>
my-customer.html
Name: {{customer.name}} Address: {{customer.address}}
<button>click</button>
and I would like create event for click to button, and after it in my controller use this event. But I don't know how to do it. Help me pls. Thanks a lot.

ng-click, no?ng-click="clicke($event)"