You can setup a watcher on the $route
in your component. It observes for route changes and when changed ,sets the message property.
1 2 3 4 5 | watch:{ $route (to, from){ this.message = 'Welcome'; } } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.