MVVMの中でもシンプルで学習障壁が低いと言われている「Vue.js」を使って、ToDoリストを作成してみました。(追加と削除のみの機能しかもたない簡単なToDOリストです。) 学習した内容の整理も兼ねて、記述したコードを紹介したいと思います。 ※今回はVue.js v2.3.3を使用しています。 ViewModel scriptの記述は下記の通り▼ new Vue({ el: '#js-todoList', data: { newItem: "", todos: [] }, methods: { addItem: function(event) { event.preventDefault(); if (this.newItem == "") return; this.todos.push({ item: this.newItem }); this.newItem = ""; }, de