Create or Edit Vue.js Components - phcreery/Family_Web_Vue GitHub Wiki

Adding

Create a Vue component. They are stored at at /client/src/components

To make the component a <router-view /> page

in /client/router/index.js import component. then add router item to routes:

    {
      path: '/path',
      name: 'name',
      component: ComponentName
    },

To Import to another component

import new component into destination component in the <script> import NewComponent from '@/src/components/NewComponent'

  1. add it to components: {} data under export default {
  2. add it to <template> as <NewComponent />
⚠️ **GitHub.com Fallback** ⚠️