Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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?