From the course: Vue.js 3 Essential Training

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Basic setup

Basic setup

- Besides adding a script tag or building a project, let's examine what makes Vue JS special and talk about how it's different from building regular JavaScript applications. To use Vue Js in your code. You'll need to create an HTML element that you can target so that Vue JS can control it. That's usually done by adding an ID to an element like a div, and that's often the keyword app but it can really be anything else. And that also means that you can add view to more than one place on your page. Once you have that ID then you can use Vue JS features inside your container. So for example, here, we can use a template expression. The template expression looks just like HTML with some extra directives which is what we call commands in Vue JS. But the directives get converted by Vue and replaced with the code needed to build your app. Now one of the directives you can use is the expression syntax which are these double…

Contents