Struggling to copy/paste all useful properties when initializing Vue? Looking to see what else Vue can do for you? Here’s the answer.
We have seen how Vue can be used from CDN. Initializing Vue is simple enough -
|
|
The above code block will initialize Vue and load it to element with id app
.
As we have seen previously, we can use a bunch of properties during initialization and make Vue super useful.
|
|
data
is used to store the static variable values / states of the component in Vue. Similar to data
there are a host of other properties that you can use.
Consider the below rundown a cheat-sheet if you will.
|
|