Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
vuerails application.js
/* eslint no-console:0 */
import "../css/application.css";
import TurbolinksAdapter from 'vue-turbolinks';
import Vuelidate from 'vuelidate';
import Vue from 'vue/dist/vue.esm';
import Login from '../components/login.vue';
Vue.use(Vuelidate)
Vue.use(TurbolinksAdapter)
Vue.component('login', Login);
document.addEventListener('turbolinks:load', () => {
const app = new Vue({
el: '[data-behavior="vue"]'
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.