Vue.js

[Vue.js] Basics with Vue.js

brightlightkim 2022. 5. 10. 04:20

v-bind: 

  • get the value

 

v-model:

  • both change

 

v-if:

  • is showing or not

 

v-on:

  • Manage events
    • from the method part

 

 

Lifecycle Hooks

  • mounted
    • Application ready to display
mounted: function() {
	fetch('https://hplussport.com/api/products/order/price')
    .then(response => response.json())
    .then(data => {
    	this.products = data;
    })
}

 

Methods:

  • Where to define functions

 

'Vue.js' 카테고리의 다른 글

[Vue.js] Toggling elements with a key  (0) 2022.05.11
[Vue.js] filters  (0) 2022.05.11
[Vue.js] Buefy, Vuetify  (0) 2022.05.11
[Vue.js] Managing CSS Styles  (0) 2022.05.11
[Vue.js] Vue.js templates  (0) 2022.05.11