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 trialAndrew Gursky
12,576 PointsEverything works except that when I complete or uncomplete a task it doesn't persist.
When I add or edit the name of a todo it works perfectly, but checking the box doesn't persist even after I save and reload the page. I can see that the ng-click function on those checkboxes changes the todo state to todo.edited = true, so the put request should apply to it, but it's not. Anybody have any insights?
Andrew Gursky
12,576 PointsI'm sorry. For some reason when I post a question in the forum I'm working in, it instead posts it in general and just asks for a category. Not doing it on purpose. I mean to post in the course. I actually figured it out. But thanks for pointing out what seemed like a mistake. I'll contact support.
1 Answer
Peter Vann
36,427 PointsAndrew,
If I understand your issue correctly, I believe I encountered the same problem.
In your /templates/todo.html file, if the top line contains:
ng-init="todo.completed = false"
Edit/comment that section of code out of the file.
That's what clobbers the actual 'completed' values from the get response.
I hope that helps.
-Pete
Steven Parker
231,269 PointsSteven Parker
231,269 PointsPlease show the code and provide a link to the course page you are working with.