Permalink
Browse files

add title and todos

  • Loading branch information...
amejiarosario committed Aug 12, 2018
1 parent 0fb4591 commit 2d1f2e5f300526be38ad41fa42d8694d8aafdfad
Showing with 12 additions and 1 deletion.
  1. +11 −0 app.js
  2. +1 −1 index.html
11 app.js
@@ -0,0 +1,11 @@
const todoApp = new Vue({
el: '.todoapp',
data: {
title: 'Todos',
todos: [
{ text: 'Learn JavaScript ES6+ goodies', isDone: true },
{ text: 'Learn Vue', isDone: false },
{ text: 'Build something awesome', isDone: false },
],
}
});
@@ -13,7 +13,7 @@
<section class="todoapp">
<header class="header">
<h1>todos</h1>
<h1 v-text="title"></h1>
<input class="new-todo" placeholder="What needs to be done?" autofocus>
</header>

0 comments on commit 2d1f2e5

Please sign in to comment.