new Vue({ el: '#sample', data: { addColor: "", colors : [ "navy", "orange", "purple", "forestgreen" ] }, methods : { addFunc : function(){ this.colors.push(this.addColor); this.addColor = ""; } } });