Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Vue apps
  2.  
  3. Router.js
  4. '#' says stop, just load js
  5.  
  6. Router link doesnt send a new web request, a tag would.
  7.  
  8. Review new Vue and main.js new vue
  9. kabob-case -> html
  10.  
  11. this.$router.push('/'); <-- redirect in Vue
  12. .push is another method to go to another route
  13.  
  14. catch errors
  15. catch(error => {
  16. this.errors => error.response.data.errors;
  17. });
  18.  
  19. After 'then'
  20.  
  21. Render error -> something wrong with template
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement