Sha256: 622e32dcf3461867e603f86b2e8b75a8948e2c3aeff857310e9712bf46311b7c
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 Bytes
Contents
// Generated by Vuejs gem ~> github.com/ytbryan/vuejs // Run this example by adding <%= '<%=' %> javascript_pack_tag "<%= name %>" <%= '%' %><%= '>' %> into your // rails' view // To generate another of this component, please run `rails g vue something` import Vue from 'vue' <% if options['seperate'] %> import App from '../parts/<%= name %>/<%= name %>.vue' <% else %> import App from '../parts/<%= name %>.vue' <% end %> document.addEventListener('DOMContentLoaded', () => { document.body.appendChild(document.createElement('hello')) const app = new Vue({ render: h => h(App) }).$mount('hello') console.log({app}) })
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vuejs-1.1.0.beta3 | lib/generators/generator_templates/packs/pack.js.erb |
vuejs-1.1.0.beta2 | lib/generators/generator_templates/packs/pack.js.erb |