javascript - Turbolinks with request loading -
in vue.js 2.0 project use turbolinks.
document.addeventlistener('turbolinks:load', () => { let app = new vue({ el: '#app', mixins: [turbolinksadapter], data() { return { showmodal: false } } }); });
so question how detect post
request. before used turbolinks had this:
$("form").submit(() => { $("#submit").addclass("is-loading"); return true; });
but that's not working anymore because not refresh entire page anymore.
any idea how working again?
Comments
Post a Comment