Skip to content

Instantly share code, notes, and snippets.

@ankitsinghaniyaz
Last active November 17, 2017 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ankitsinghaniyaz/66d9515080cd2946d18d5ea3e1898c59 to your computer and use it in GitHub Desktop.
Save ankitsinghaniyaz/66d9515080cd2946d18d5ea3e1898c59 to your computer and use it in GitHub Desktop.
<div id="<%= vue_component_kebab_name %>">
<%= vue_component_snippet %>
</div>
<%= stylesheet_pack_tag_snippet %>
<%= javascript_pack_tag_snippet %>
// This is javscript code, which uses ERB tags for templating
// All the methods will be invoked and their values will be interpolated
import Vue from 'vue/dist/vue.esm';
import <%= js_file_name %> from 'views/<%= name %>';
new Vue({
el: '#<%= vue_component_kebab_name %>',
components: {
'<%= vue_component_kebab_name %>': <%= js_file_name %>
}
});
<template>
</template>
<script>
export default {
}
</script>
<style scoped>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment