Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Building a MEAN Application More TODO with the MEAN Stack Templating with ngInclude

Lindsay Williams
Lindsay Williams
2,850 Points

Delete from the database not working

I have been following along and I am able to delete todos from the DOM, but not the database, so when I refresh the browser the todo is not deleted. I have this.deleteTodo = function(todo) { console.log("I deleted the " + todo.name + " todo!"); }; in the data.js file. What am I missing?

2 Answers

Ken Howard
STAFF
Ken Howard
Treehouse Guest Teacher

The course doesn't demonstrate how to delete TODOs but you might find this answer helpful: https://teamtreehouse.com/community/delete-data-in-angular

luis arrona
luis arrona
5,885 Points

do you still need this answer?