vue redirect to route
<button @click="goToHome()"> </button>
//inside the script section, define the function:
methods:{
goToHome(){
this.$router.push('/home');
}
}
//if the route accepts params, you can also use
this.$router.push({name:'home', params: {id: '[paramdata]'}}); // Use this in a lifecycle method
this.$router.push('/login');
Also in JavaScript:
- get dirname to last directory node
- react lifecycle example
- manual avanzado java script
- math random equitative js
- email id domain check javascript
- w3schools angular
- javascript sort numbers descending
- react actions sintaxe
- javascript create 2d array
- setstate react js
- enzynme not support react 17
- form data-request octobercms
- take out decoration from link react
- JavaScript how do you create a screen button in 10 lines?
- how to add react.memo in export list
- express how to access ajax post data
- vue js vForm
- animejs reduce the speed
- javascript filter array of objects
- image compression in nodejs
- angular http call caching issue even after no-cache
- javascript advanced interview questions
- email validation in javascript
- moment use in angular