Skip to content

Instantly share code, notes, and snippets.

@Xosmond Xosmond/application.js
Last active Dec 13, 2018

Embed
What would you like to do?
vuerails vue-turbolinks
/* eslint no-console:0 */
import "../css/application.css";
import Vue from 'vue/dist/vue.esm';
import TurbolinksAdapter from 'vue-turbolinks';
import Vuelidate from 'vuelidate';
Vue.use(TurbolinksAdapter);
Vue.use(Vuelidate);
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.