Skip to content

dajimenezriv/vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vue

Commands

npm init vue@latest # creates vue project
npm run dev # run in development
npm run build # creates a production-ready build

Using <script>

We can use Vue without installing it via script.

<!-- here we are using unpkg, but we can also use any CDN that serves npm packages -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>

<div id="app">{{ message }}</div>

<script>
  const { createApp } = Vue

  createApp({
    data() {
      return {
        message: 'Hello Vue!'
      }
    }
  }).mount('#app')
</script>

About

Learning vue.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published