Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Vue({
- el: "#app",
- data: {
- todos: [
- { text: "Learn JavaScript", done: false },
- { text: "Learn Vue", done: false },
- { text: "Play around in JSFiddle", done: true },
- { text: "Build something awesome", done: true }
- ]
- },
- methods: {
- toggle: function(todo){
- todo.done = !todo.done
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement