LIVE DEMO
Consider the following myButton directive:
angular.module(\"Demo\", []).directive(\"myButton\", function() {
return {
re
Why not use the actual button for your button. You could change your directive to:
angular.module("Demo", []).directive("myButton", function() {
return {
restrict : "E",
replace: true,
scope: {
disabled: "="
},
transclude: true,
template: ""
};
});
Then style it to look like your div. See the Short Example I've made.