Skip to content

Vue Composition API: Child Components

Mike Lyttle edited this page May 9, 2023 · 2 revisions

Class Component

import Vue from "vue";
import { Component } from "vue-property-decorator";

import OtherComponent from "@/components/OtherComponent.vue";

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const options: any = {
    components: {
        OtherComponent,
    },
};

@Component(options)
export default class LandingView extends Vue {
}

Composition API

import OtherComponent from "@/components/OtherComponent.vue";

Documentation

Clone this wiki locally