Looking for a solution:
angular
.module('test')
.directive('multiButton', function () {
return {
restrict: 'E',
replace: true,
scope: {
disabled: '@'
},
template: '<div class="multi-button"><button ng-disabled={{disabled}}></button></div>'
});
I'm wondering if there's a way to avoid including "ng-disabled" in the template if the disabled attribute is not present.
Any suggestions on how this can be achieved?