Skip to content

Instantly share code, notes, and snippets.

@yangwao
Created March 25, 2020 14:00
Show Gist options
  • Save yangwao/16f140908ec5aad901a8988c2e25e7cd to your computer and use it in GitHub Desktop.
Save yangwao/16f140908ec5aad901a8988c2e25e7cd to your computer and use it in GitHub Desktop.
Vue Typescript Template Component Snippet for Vetur with vue-property-decorator
{
"vue typescript w decorator": {
"prefix": "<template Typescript 😁",
"body": [
"<template>"
" <div>"
"\n"
" </div>"
"</template>"
"<script lang=\"ts\" >"
"import { Component, Prop, Vue, Watch } from 'vue-property-decorator';"
"\n"
"@Component({})"
"export default class $1 extends Vue {"
"$2"
" private value2: any;"
" @Prop() public value!: any;"
"}"
"</script>"
],
"description": "vue template w decorator component"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment