plang:vuej3:v3howto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
plang:vuej3:v3howto [04/08/22 @ 14:54:29] – [Handy Terms] justinplang:vuej3:v3howto [04/08/22 @ 15:28:39] (current) – [Handy Terms] justin
Line 9: Line 9:
 |v-show| //N/A// | Changes the visibility in the DOM, element remains |v-show="inStock" acts as v-if above. On false it adds a display:none to the style | |v-show| //N/A// | Changes the visibility in the DOM, element remains |v-show="inStock" acts as v-if above. On false it adds a display:none to the style |
 |v-for| //N/A// | Loops through lists, objects etc| v-for="element in elementlist" and then in then list, element.property etc.Often used with **key** attribute to give list a unique ID | |v-for| //N/A// | Loops through lists, objects etc| v-for="element in elementlist" and then in then list, element.property etc.Often used with **key** attribute to give list a unique ID |
 +|v-on:<event>| **@** |Allow you to attach an event listener to an element| v-on:click="js expression". This can be a VueJS method e.g. v-on:click="addToCart" |
  
 ===== Structure ===== ===== Structure =====
  • plang/vuej3/v3howto.txt
  • Last modified: 04/08/22 @ 15:28:39
  • by justin