November 2017
Beginner to intermediate
398 pages
8h 42m
English
Let's add some interactivity to our otherwise quite static app, for example, a text input that will allow the user to change the message displayed. We can do that in templates with special HTML attributes called directives.
The directive we need here is v-model, which will bind the value of our <input> element with our message data property. Add a new <input> element with the v-model="message" attribute inside the template:
<div id="root"> <p>{{ message }}</p> <!-- ...Read now
Unlock full access