Skip to content

Instantly share code, notes, and snippets.

@bradroberts
Created August 12, 2019 13:48
Show Gist options
  • Save bradroberts/00230da041e2182c10c91a23d9c76439 to your computer and use it in GitHub Desktop.
Save bradroberts/00230da041e2182c10c91a23d9c76439 to your computer and use it in GitHub Desktop.

Revisions

  1. bradroberts created this gist Aug 12, 2019.
    37 changes: 37 additions & 0 deletions component.vue
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    <template>
    <div></div>
    </template>

    <script>
    // https://vuejs.org/v2/style-guide/#Component-instance-options-order-recommended
    export default {
    name: '${NAME}',
    inject: {},
    components: {},
    directives: {},
    filters: {},
    mixins: [],
    inheritAttrs: true,
    model: {
    prop: 'value',
    event: 'input'
    },
    props: {},
    data() {
    return {};
    },
    computed: {},
    watch: {},
    beforeCreate() {},
    created() {},
    beforeMount() {},
    mounted() {},
    beforeUpdate() {},
    updated() {},
    activated() {},
    deactivated() {},
    beforeDestroy() {},
    destroyed() {},
    methods: {}
    };
    </script>