Tutorialsplane

Vue.js decode URL


We can use decodeURIComponent function to decode URL. Here in this tutorial, we are going to explian how you can use this method to decode URL in vue.js. You can also use our online editor to edit and run the code online.


Vue.js decode URL Example

You can use decodeURIComponent to decode the url in vue.js.

Example:

<div id="app">
	<p>Result 1 = {{result}}</p>
	<button>Click Me</button>
</div>
  

Try it ยป

Output of above example-