1.0.1 • Published 3 years ago

vue3-cli-service v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vue3-cli-service npm.io


Template Vue3 + @vue/cli-service

Description

'Vue3 + @vue/cli-service' is a model with minimum requirements based on Vue3 and served by vue-cli-service.

It is the result of this tutorial, which aims to illustrate the use of COMPOSITION-API on vue3 served by @vue/cli-service.

Installation

1- Clone this repo and run

git clone github.com/wissemb11/vue3-cli-service
  1. change directory
cd vue3-cli-service
  1. Install node modules
npm i

4- Run the serve command for development and watch

npm run serve

Edit file src/main.js

COMPOSITION API case
import { createApp, h } from 'vue'
import './style.css'
// import App from './App.vue'
let App = {
    props:['props1','props2']
    setup(props,context) {
        return () => [h('h1', '# Vue3-COMPOSITION-API ON the SERVER SIDE'),
            h('p', ...),
            ... 
         ]

    }
}
createApp(App).mount('#app')
OPTIONS API case
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

const app = createApp(App)
app.mount('#app')