28
loading...
This website collects cookies to deliver better user experience
vue router
(Routing), vuex
(state manager store), vue cli
(to create easily vuejs project)portion
of the current DOM with the new value without impaction the current dom performance !<template>
<div id="app">
{{ message }}
</div>
</template>
<script>
var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!'
}
})
</script>
v-
to indicate that they are special attributes provided by Vue.v-if
directive to create a component if the condition is true :<div>
<span v-if="isShow">Hey</span>
</div>
<div>
<span v-if="isCool">Is Cool</span>
<span v-else>Not Cool</span>
</div>
v-for
-> We can use it to render a list of items based on an array.<div>
<span v-for="item in [1, 2, 3]"> {{ item }} </span>
</div>
click
with v-on !Props: Passing Data to Child Components
Data: Data linked to the component
Methods: Methods linked to the component
Lifecycle hooks: Lifecycle hooks allow you to know when your component is created, added to the DOM, updated, or destroyed.
Underrated skills in javascript, make the difference
for FREE if you follow me on Twitter and MP me 😁