Please enable JavaScript.
Coggle requires JavaScript to display documents.
Basic1 - Coggle Diagram
Basic1
Advanced Reactivity
-
-
Watchers
-
someProp( newVal, oldVal ) { //...do something with old and new values }
Compare Methods, Computed, Watchers
-
-
-
-
data type
could be string, boolean, number, array, object
-
-
Event Binding
-
Event Modifiers
-
-
v-on:keyup
-
v-on:keyup.enter, v-on:keyup.ctrl ... // specific key is up
Dynamic Styling
-
dynamic classes
Basic
object
:class="{center: true, btn: true, active: false }"
-
-
Advanced
-
Array Syntax
:class="['demo, {active: isBoxASeleted}, objectA']"
-
methods
inside Vue.createApp({ ... }), we declare methods object
methods: { greet() { //...do something } }
-
-
-