Tutorialsplane

Vue.Js Array Map


This method created a new array by calling a function for each element. Here in this tutorial, we are going to explain how to use JavaScript Array Map function in vue.js. You can use our online editor to edit and run the code online.


Vue.Js Array Map Method Example

You can use Array Map function in vue.js simply as below-

Example:

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

Try it ยป

Output of above example-