- 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.
推薦閱讀
- Java語言程序設計
- GAE編程指南
- Learning C# by Developing Games with Unity 2020
- 程序設計與實踐(VB.NET)
- 深度學習經典案例解析:基于MATLAB
- HTML5+CSS3基礎開發教程(第2版)
- Java編程指南:基礎知識、類庫應用及案例設計
- C語言程序設計立體化案例教程
- Mastering Drupal 8 Views
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- Mastering Android Game Development
- Extending Puppet(Second Edition)
- 速學Python:程序設計從入門到進階
- Mastering Backbone.js
- Building Wireless Sensor Networks Using Arduino