Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (68 sloc) 2.54 KB
<!doctype html>
<html data-framework="vue">
<meta charset="utf-8">
<title>Iris + Vue.js β€’ TodoMVC</title>
<link rel="stylesheet" href="">
<!-- this needs to be loaded before guide's inline scripts -->
<script src=""></script>
<!-- $http -->
<script src=""></script>
<!-- -->
<script src=""></script>
<!-- websocket sync between multiple tabs -->
<script src="/todos/iris-ws.js"></script>
<!-- -->
[v-cloak] {
display: none;
<section class="todoapp">
<header class="header">
<input class="new-todo" autofocus autocomplete="off" placeholder="What needs to be done?" v-model="newTodo" @keyup.enter="addTodo">
<section class="main" v-show="todos.length" v-cloak>
<input class="toggle-all" type="checkbox" v-model="allDone">
<ul class="todo-list">
<li v-for="todo in filteredTodos" class="todo" :key="" :class="{ completed: todo.completed, editing: todo == editedTodo }">
<div class="view">
<!-- v-model="todo.completed" -->
<input class="toggle" type="checkbox" @click="completeTodo(todo)">
<label @dblclick="editTodo(todo)">{{ todo.title }}</label>
<button class="destroy" @click="removeTodo(todo)"></button>
<input class="edit" type="text" v-model="todo.title" v-todo-focus="todo == editedTodo" @blur="doneEdit(todo)" @keyup.enter="doneEdit(todo)"
<footer class="footer" v-show="todos.length" v-cloak>
<span class="todo-count">
<strong>{{ remaining }}</strong> {{ remaining | pluralize }} left
<ul class="filters">
<a href="#/all" :class="{ selected: visibility == 'all' }">All</a>
<a href="#/active" :class="{ selected: visibility == 'active' }">Active</a>
<a href="#/completed" :class="{ selected: visibility == 'completed' }">Completed</a>
<button class="clear-completed" @click="removeCompleted" v-show="todos.length > remaining">
Clear completed
<footer class="info">
<p>Double-click to edit a todo</p>
<script src="/js/app.js"></script>
You can’t perform that action at this time.