- 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.
推薦閱讀
- 復雜軟件設計之道:領域驅動設計全面解析與實戰
- 微服務與事件驅動架構
- 無代碼編程:用云表搭建企業數字化管理平臺
- Java FX應用開發教程
- C/C++常用算法手冊(第3版)
- Learning ELK Stack
- Mastering RStudio:Develop,Communicate,and Collaborate with R
- H5頁面設計:Mugeda版(微課版)
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- 算法設計與分析:基于C++編程語言的描述
- DevOps 精要:業務視角
- Laravel Design Patterns and Best Practices
- MongoDB Administrator’s Guide
- HTML并不簡單:Web前端開發精進秘籍
- Python量子計算實踐:基于Qiskit和IBM Quantum Experience平臺