Javascript – Vue – Change state from 'watch' callback
I'm playing around with Vue, and I've seen you can set up a 'watch' callback for when a piece of Data changes: <template> <div class="hello"> <h1>{{ msg }}</h1> <input v-model="inputVal" placeholder="edit me" /> <p>{{ inputVal }}</p> </div> </template> <script> export…