Last active
November 17, 2017 16:08
-
-
Save ankitsinghaniyaz/66d9515080cd2946d18d5ea3e1898c59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="<%= vue_component_kebab_name %>"> | |
<%= vue_component_snippet %> | |
</div> | |
<%= stylesheet_pack_tag_snippet %> | |
<%= javascript_pack_tag_snippet %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 %> | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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