November 2017
Beginner to intermediate
398 pages
8h 42m
English
Now that we know which note is currently selected, we can replace the old content data property we created at the beginning. It would be very useful to have a computed property to easily access the selected note, so we will create one now:
computed: {
...
selectedNote () {
// We return the matching note with selectedId
return this.notes.find(note => note.id === this.selectedId)
},
}
We need to replace the old
Read now
Unlock full access