I need to apply directive to button component. It is kind of this:
<button my-own-directive />
But the issue here is, in my application, there are many pages, and total button components can be hundreds in total.
I know I can do a global find and replacement, but that doesn't seem to be an elegant solution.
I am thinking if it is possible to extend current html button component and then apply the directive to the extended button. But here what I want is the extended button should also have the same name, so that I do not need to global search and replace.
Hope to hear your advice for this solutions, thanks