Creating new notes

At this point, the To-do list looks like this:

To-do:Create new notes*- NoteEditor component- Update current note mutation- Add note to noteList mutation- Add note actionUpdate an existing noteDelete a noteSave notes to LocalStorageExtra:Search among notesPin a noteDone:Show all notes  - Add note list to the store  - Note list vue component  -- Add a temporary note list to the store

The next feature I will implement is the ability to create new notes. For this feature, we need a NoteEditor component, a store property named currentNote, an action named addNote, and two mutations: UPDATE_CURRENT_NOTE and ADD_NOTE.

The idea is that when a user writes in the note editor, the currentNote store property gets updated. When he taps ...

Get Vuex Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.