Sha256: 34977ae7adcd8eadaf65daf3d3109cd0bff5a475858787cf8100790c7f36258e
Contents?: true
Size: 659 Bytes
Versions: 5
Compression:
Stored size: 659 Bytes
Contents
// Generated by Vue on Rails https://github.com/vueonrails/vueonrails // Display this Vue component on Rails View by adding `require('./<%= name %>')` to app/javascript/application.js // Generate a component part by running command `rails generate vue something` import Vue from 'vue' <% if options['seperate'] -%> import App from '@/<%= name %>/<%= name %>.vue' <% else -%> import App from '@/<%= name %>.vue' <% end -%> document.addEventListener('DOMContentLoaded', () => { document.body.appendChild(document.createElement('<%= name %>')) const <%= name %> = new Vue({ render: h => h(App) }).$mount('<%= name %>') console.log({<%= name %>}) })
Version data entries
5 entries across 5 versions & 1 rubygems