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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -