I would like to incorporate Angular widgets that are similar to KendoUI. In Kendo, we utilize the widgets by using Angular directives in the following manner
HTML
<input kendo-numerictextbox k-min=1 k-max=5 k-on-spin="valueChanged(kendoEvent)">
k-min -> this functionality can be achieved by parsing the attributes within the directives and adjusting the element accordingly
k-on-spin -> whenever the value is changed, we invoke the valueChanged() function which can then be utilized in the user's Angular controller as shown below
$scope.valueChanged = function(e){
console.log(e.event.target.tagName)};
Question: How can we implement the k-on-spin in an Angular directive so that users have the option to connect their own function when this event occurs?