- Vue.js 2 Web Development Projects
- Guillaume Chau
- 107字
- 2021-07-02 22:34:29
Renaming the note
This first toolbar feature is also the easiest. It only consists of a text input bound to the title property of the selected note with the v-model directive.
In the toolbar p element we just created, add this input element with the v-model directive and a placeholder to inform the user of its function:
<input v-model="selectedNote.title" placeholder="Note title" />
You should have a functional rename field above the text editor and see the note name change automatically in the note list as you type:

Since we set the deep option on the notes watcher, the note list will be saved whenever you change the name of the selected note.
推薦閱讀
- Python自然語言處理實戰:核心技術與算法
- Python數據分析基礎
- Manga Studio Ex 5 Cookbook
- JavaScript 網頁編程從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Java游戲服務器架構實戰
- Python數據分析從0到1
- Hands-On Reinforcement Learning with Python
- 精通Linux(第2版)
- 批調度與網絡問題的組合算法
- MySQL從入門到精通(軟件開發視頻大講堂)
- Learning Hadoop 2
- Unity 2018 Augmented Reality Projects
- 從Excel到Python數據分析:Pandas、xlwings、openpyxl、Matplotlib的交互與應用
- 從0到1:HTML5 Canvas動畫開發
- Building Microservices with Go