Adding a state definition to a button
Hello everyone,
I hope you are well.
I want to create a service that changes the value of a property. This service takes in an input (true or false) which is then assigned to the property's value.
I want to use the button to accomplish this. Meaning only when I click the button will I get either a true or false value. This will cause the property to change value whenever the button is clicked.
The problem is buttons do not take in state definitions (Where I planned to keep the true/false).
How else can I accomplish this?
Your suggestions will be much appreciated.
Regards.

