- 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.
推薦閱讀
- Microsoft Exchange Server PowerShell Cookbook(Third Edition)
- Python快樂(lè)編程:人工智能深度學(xué)習(xí)基礎(chǔ)
- 算法零基礎(chǔ)一本通(Python版)
- JavaScript:Functional Programming for JavaScript Developers
- 趣學(xué)Python算法100例
- OpenCV 3和Qt5計(jì)算機(jī)視覺(jué)應(yīng)用開(kāi)發(fā)
- Bootstrap Essentials
- concrete5 Cookbook
- Hands-On Reinforcement Learning with Python
- ABAQUS6.14中文版有限元分析與實(shí)例詳解
- JavaScript編程精解(原書(shū)第2版)
- Visual Basic語(yǔ)言程序設(shè)計(jì)上機(jī)指導(dǎo)與練習(xí)(第3版)
- C# 7 and .NET Core 2.0 Blueprints
- ASP.NET jQuery Cookbook(Second Edition)
- Practical Linux Security Cookbook