Collection of Vue.js snippets for version 2.0+. Also supports Vuex, vue-router still missing.
Feel free to contribute to this package by submitting a PR!
Just press TAB
or ENTER
to unfold a snippet
template <!--Single file component template-->
router-view <!--Vuejs router-view component-->router-link <!--Vuejs router-link component with named route-->component <!--Include component in HTML-->sccomponent <!--Include self closed component in HTML-->i18n <!--Include internationalization component-->
v-for <!--Vuejs binding for list rendering-->v-if <!--Vuejs binding for if conditional rendering-->v-else-if <!--Vuejs binding for else if rendering-->v-else <!--Vuejs binding for else conditional rendering-->v-show <!--Vuejs binding for show conditional rendering-->v-model <!--Vuejs binding for model binding-->vClassObj <!--Vuejs binding for class as an object-->vClassArr <!--Vuejs binding for class as an array-->
beforeCreate; // Vuejs instance lifecycle hook for beforeCreatecreated; // Vuejs instance lifecycle hook for createdbeforeMount; // Vuejs instance lifecycle hook for beforeMountmounted; // Vuejs instance lifecycle hook for mountedbeforeUpdate; // Vuejs instance lifecycle hook for beforeUpdateupdated; // Vuejs instance lifecycle hook for updatedbeforeUpdate; // Vuejs instance lifecycle hook for beforeUpdateupdated; // Vuejs instance lifecycle hook for updatedbeforeDestroy; // Vuejs instance lifecycle hook for beforeDestroydestroyed; // Vuejs instance lifecycle hook for destroyedbeforeRouteEnter; // Vue-router instance lifecycle hook for beforeRouteEnterbeforeRouteUpdate; // Vue-router instance lifecycle hook for beforeRouteUpdatebeforeRouteLeave; // Vue-router instance lifecycle hook for beforeRouteLeavevwatch; // Vuejs way to watch instance propertiesmethods; // Vuejs methods event handlerscomponents; // Use it when you want to add child components to parent component.props; // Vuejs way to pass data to child componentsvprops; // Vuejs way to pass data to child components with validationvcomputed; // Vuejs computed property
vstore; // Vuex template for a complete store with state,getters,actions and mutationsvmut; // Vuex mutation snippetvact; // Vuex action snippetvget; // Vuex getter snippetvtype; // Vuex constant type snipppet
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.