Last active
September 12, 2022 14:09
-
-
Save pusewicz/3316008edf877c301a329e43d72ac3b1 to your computer and use it in GitHub Desktop.
Step 3: Adding the timer element on screen
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
<div class="view"> | |
<input class="toggle" type="checkbox" v-model="todo.completed"> | |
<label @dblclick="editTodo(todo)"> | |
{{ todo.title }} | |
+ <div class="harvest-timer" :id="todo.id" | |
+ :data-item="`${JSON.stringify({ id: todo.id, name: todo.title })}`" | |
+ :data-group="`${JSON.stringify({ id: 1, name: 'TodoMVC' })}`" | |
+ > | |
+ </div> | |
</label> | |
<button class="destroy" @click="removeTodo(todo)"></button> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment