Skip to content

Instantly share code, notes, and snippets.

@lwakefield
Created March 1, 2016 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lwakefield/f3cc4e19a72148b8ce0c to your computer and use it in GitHub Desktop.
Save lwakefield/f3cc4e19a72148b8ce0c to your computer and use it in GitHub Desktop.
<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)">&times;</button>
</div>
</div>
</div>
</template>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment