Skip to main content

How to change or Re forceRerender Page After Login in VueJS

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;
      }
    }

}


Comments

Popular posts from this blog

Mail With Laravel

Step-1    php artisan make:mail TestMail Step-2 change In .env File MAIL_MAILER =smtp MAIL_HOST =smtp.gmail.com MAIL_PORT = 587 MAIL_USERNAME =yourmail@gmail.com MAIL_PASSWORD =hearyourpassword MAIL_ENCRYPTION =tls MAIL_FROM_ADDRESS =yourmail@gmail.com MAIL_FROM_NAME = " ${ APP_NAME } " Step-3   php artisan serve   Step-4 In Controller ->Function $details =[              'title' => "Mail from Laravel" ,              'body' => "This mail laravel test mail i'll try" ,         ];          Mail :: to ( "sendermail@gmai.com" )-> send ( new   TestMail ( $details ));          return   "Mail Send" ; Step-5   Change in TestMailFile public   $details ;        /**      * Create a new message instance.      *      *  @return   void      */      public   function   __construct ( $details )     {          $this -> details = $details ;     }        /**      * Build the message.      *      *  @return  $this      */

How Apps Manager Can Boost Your Revenue as an Application Publisher

How Apps Manager Can Boost Your Revenue as an Application Publisher If you are an application publisher, you know how challenging it can be to manage your apps across different platforms, devices, and markets. You have to deal with multiple app stores, payment methods, analytics tools, and user feedback channels. You also have to optimize your app performance, monetization, and marketing strategies to stay ahead of the competition. That's where Apps Manager comes in. Apps Manager is a comprehensive and innovative system that helps you manage your apps with ease and efficiency. Apps Manager lets you: •  Publish your apps to multiple app stores with one click •  Track your app downloads, ratings, reviews, and revenue across all platforms •  Integrate with popular payment gateways and ad networks to monetize your apps •  Analyze your app usage, retention, and engagement metrics with powerful analytics tools •  Engage your users with push notifications, in-app messages, and surveys •