https://stackoverflow.com/questions/61101750/angularjs-remove-the-directive-of-lower-priority
- Remove
ng-disabledbefore it compiled- Impossible,
priorityis not enough, butterminalis static. - https://docs.angularjs.org/guide/compiler#how-directives-are-compiled
- Impossible,
- Watch
disabledattribute of the DOMSounds stupid. And performance?
- Use CSS + class to fade the
<button>-No.
pointer-eventscannot avoid<button>from triggered with[TAB]key. - Write a new directive to replace
ng-disabled(priority: 100) . ex:my-disabled(priority: 101)