Created
March 1, 2016 13:11
-
-
Save lwakefield/f3cc4e19a72148b8ce0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>meteor-vue-todo</title> | |
</head> | |
<body> | |
<app></app> | |
<template id="app"> | |
<div class="app"> | |
<h1>Meteor Vue Todos</h1> | |
<input type="text" placeholder="Add a new todo here" v-model="newTodo" @keyup.enter="addNewTodo"> | |
<div class="todo-list"> | |
<div class="todo" v-for="todo in todos"> | |
<span> {{ todo.title }} </span> | |
<button @click="removeTodo(todo)">×</button> | |
</div> | |
</div> | |
</div> | |
</template> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment