Skip to content

Instantly share code, notes, and snippets.

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.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