Tutorialsplane

Vue.js Array Shift


This method removes an element from the beginning of array.


Vue.js Array Shift Method Example

Here is an example of JavaScript Array Shift method in Vue.JS-

Example:

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

Try it ยป

Output of above example-