Example:
<button ion-button [myProperty]="foo">
Click
</button>
I need a property like myProperty
that gives to the button other dynamic properties such as:
- if
foo
is greater than 100 the button will bedisabled
. - if
foo
is less than 0 the buttonclick event
will be overwritten.
(It is necessary since it needs to be applied on many buttons)
What is the best way to solve this?