November 2017
Beginner to intermediate
398 pages
8h 42m
English
Now that we have our app running, let's add the text editor. We will use a simple textarea element and the v-model directive we saw in Chapter 1, Getting Started with Vue.
Create a section element and put the textarea inside, then add the v-model directive bound to our content property:
<!-- Main pane --> <section class="main"> <textarea v-model="content"></textarea> </section>
Now, if you change the text ;inside the note editor, the value of content should automatically chance in the devtools.
Read now
Unlock full access