- Full-Stack Vue.js 2 and Laravel 5
- Anthony Gore
- 80字
- 2021-07-02 19:57:19
Directives
Vue's directives are special HTML attributes with thev-prefix, for example,v-if, which provide a simple way to add functionality to our templates. Some examples of directives you can add to an element are:
- v-if: Conditionally render the element
- v-for: Render the element multiple times based on an array or object
- v-bind: Dynamically bind an attribute of the element to a JavaScript expression
- v-on: Attach an event listener to the element
There are more that we will explore throughout the book.
推薦閱讀
- WordPress Plugin Development Cookbook(Second Edition)
- MySQL數據庫管理與開發(慕課版)
- Mathematica Data Analysis
- 從零開始學Linux編程
- Windows Embedded CE 6.0程序設計實戰
- Machine Learning With Go
- Machine Learning for Developers
- Solr權威指南(下卷)
- Python應用與實戰
- Python數據預處理技術與實踐
- Expert Cube Development with SSAS Multidimensional Models
- Mastering VMware vSphere Storage
- Visual FoxPro程序設計
- Python High Performance(Second Edition)
- Java Web應用設計及實戰