new Vue({ el: '#sample', data: { addColor: "", colors : [ "yellow", "blue", "red", "grenn", ] }, methods : { addFunc : function(){ this.colors.unshift(this.addColor); this.addColor = ""; }, removeFunc : function(i){ this.colors.splice(i,1); } } });