Skip to content

Instantly share code, notes, and snippets.

@dennbagas
Created July 24, 2021 07:33
Show Gist options
  • Save dennbagas/6c1b3f66e60086778d7daa57040201e7 to your computer and use it in GitHub Desktop.
Save dennbagas/6c1b3f66e60086778d7daa57040201e7 to your computer and use it in GitHub Desktop.
Nuxt VSCode Snippet
{
"Nuxt Class Component": {
"prefix": "vue-component-class-ts",
"body": [
"<template>",
" <div></div>",
"</template>",
"",
"<script lang=\"ts\">",
"import { Component, Vue } from 'vue-property-decorator'",
"",
"@Component",
"export default class ${1:VueComponent} extends Vue {",
" //",
"}",
"</script>",
""
],
"description": "NuxtJS Typescript Class Component"
},
"Nuxt Page": {
"prefix": "vue-page-class-ts",
"body": [
"<template>",
" <div></div>",
"</template>",
"",
"<script lang=\"ts\">",
"import { Component, Vue } from 'vue-property-decorator'",
"import PagePropertyMixin from '~/mixin/pageProperty'",
"",
"@Component",
"export default class ${1:VueComponent} extends extends Mixins(PagePropertyMixin) {",
" //",
"}",
"</script>",
""
],
"description": "NuxtJS Typescript Class Page"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment