[Vuejs]-Property "loading" does not exist on type "Vue" (NuxtJS)

0👍

I’ve finally figured it out. For anyone wanting to know the answer:

<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
    data() {
        return {
            loading: false,
        };
    },
    methods: {
        start(): void {
            this.loading = true;
        },
        finish(): void {
            this.loading = false;
        },
    },
});
</script>

Leave a comment