Update Vue from Object property #9409
Unanswered
JokerMartini
asked this question in
CLI - Electron mode
Replies: 1 comment
-
@JokerMartini |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a custom class that contains properties and I'm wondering how can I have my vue file update to reflect the property change. For the sake of simplicity I've slimmed down my custom class (which i'll expand in the future to have more properties.
In this example, i expect the btn to change color and icon when the user clicks it based on the property 'isPlaying' on my custom class Stopwatch.
main.vue
stopwatch.ts
Beta Was this translation helpful? Give feedback.
All reactions