Skip to content

📋 Simple app using Vue.js and html to create a todo list, from youtube tutorial by 'Coding Garden with CJ'

Notifications You must be signed in to change notification settings

AndrewJBateman/Vue-app-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Vue App Todo

  • Vue app to display todo items with a checkbox to show item is done and a button to remove the todo item from the list.

Note: to open web links in a new window use: ctrl+click on link

📄 Table of contents

📚 General info

  • Data displayed using one-way data-binding and v-for loops.

📷 Screenshots

Example screenshot

📶 Technologies

💾 Setup

  • Open index.html. This is just a html page so it will not automatically reload if you change any of the source files.

💻 Code Examples

  • App.js file: including data array and methods to add and remove todos
const app = new Vue({
	el: '#app',
	data: {
		title: 'hello',
		newTodo: '',
		todos: [],
	},
	methods: {
		addTodo() {
			console.log('form submitted');
			this.todos.push({
				title: this.newTodo,
				done: false,
			});
			this.newTodo = ''; /*clear input box*/
		},
		removeTodo(todo) {
			const todoIndex = this.todos.indexOf(todo);
			this.todos.splice(todoIndex, 1);
		},
		allDone() {
			this.todos.forEach((todo) => {
				todo.done = true;
			});
		},
	},
});

🆒 Features

  • Minimal amount of code, no dependencies to update.

📋 Status & To-Do List

  • Status: Simple working app with basic UI.
  • To-Do: add functionality - change todo checkbox to a proper button with 'todoDone()' function.

👏 Inspiration

✉️ Contact

About

📋 Simple app using Vue.js and html to create a todo list, from youtube tutorial by 'Coding Garden with CJ'

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published