Main.js import Vue from 'vue' Vue . config . productionTip = false export const bus = new Vue (); login.vue function login() { bus . $emit ( "changeIt" , response . data ); } Navbar.vue export default { forceRerender () { bus . $on ( "changeIt" , data => { this . user = true ; this . uname = data ; }); }, async created () { bus . $on ( "changeIt" , data => { this . uname = data . email ; } } }