VueJs

Vue 3

  • main.js
        import { createApp } from 'vue'
        import App from './App.vue'
        const app = createApp(App);
        app.mount('#app');
  • Component: TodoList.vue
    • All reactive data objects and functions are in setup() function
    • With the Composition API, you can use regular functions and reactive data objects directly within the setup() function, eliminating the need for separate methods and computed sections
    • You can define reactive properties using the ref function or the reactive function
    • Reactive objects and functions are returned at the end
  • TypeScript:
    • Install: npm install --save-dev typescript
    • <script lang="ts">
    • export default defineComponent({

Labels: ,

© copyright-2020 Rejaul