JSFiddle - React, Tailwind, and code Playground
JavaScript
new Vue({
el: 'app',
data: {
items: Array(10 + 1).join(1).split('').map(function(val, key) {
return { index: key + 1 };
})
},
mounted(){
this.getOne()
},
methods:{
getOne: function () {
this.getTwo()
},
getTwo: function () {
alert("Hello")
}
}
});