Replies: 1 comment 3 replies
-
Would |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there!
So I've worked with Vue alot a little bit ago but more recently I've been assigned to more PHP and teaching work. I found the need for a reactive calendar and I wanted to use a light version of Vue to manage this and that's when I found Vue Petite! The more simplistic object way of making components threw me a little but I personally think I'll find teaching the more simplistic format easier.
I've setup and worked on a little calendar integration and it works well. I have a "currentDate" property and gets mutated by some setters triggered by some buttons. After the mutation I then call another function to refresh my array of dates and then that reactively updates the frontend.
I want to make a little bit of my code simpler. I believe that I could have a watcher bound to the "currentDate" property which would then refresh my array of dates and reactively update the frontend. This would reduce the amount of load and repeated code within my setters.
What do you think?
Am I missing something and is this possible already?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions