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 trialJonathan Grieve
Treehouse Moderator 91,253 PointsAlmost completed the Angular Basics Course. But there's a compiler error
I'm getting an error that I'm not sure how to fix. Here's a link.
http://www.jonniegrieve.co.uk/jg-lab.co.uk/treehouse/sites/todos/
All I'm getting at the moment is a compiler error but doesn't seem to link to the problem, only to Angular itself.
Error: [$compile:tpload] http://errors.angularjs.org/1.5.0-beta.2/$compile/tpload?p0=templates%2Ftodos.html&p1=404&p2=Not%20Found
at Error (native) angular.min.js:111```
would anyone have any idea how to fix this? I've completed the course but I didn't really know how to fix the error. Have followed all the coding. Thanks
1 Answer
Chyno Deluxe
16,936 PointsFrom what I see in the console. The templates folder and todos.html does not exist. Are you sure you have uploaded those files on your server?
Jonathan Grieve
Treehouse Moderator 91,253 PointsJonathan Grieve
Treehouse Moderator 91,253 PointsThat's odd. They exist on both my local server and web server, so don't think it's that. But thanks. :-)
Chyno Deluxe
16,936 PointsChyno Deluxe
16,936 PointsThis is the response i get when I try to locate your todos.html template
http://www.jonniegrieve.co.uk/jg-lab.co.uk/treehouse/sites/todos/templates/todos.html
Jonathan Grieve
Treehouse Moderator 91,253 PointsJonathan Grieve
Treehouse Moderator 91,253 PointsOkay... Fixed the problem with the todos.html. It was included in the scripts folder which i needed to link to.
All that remains is for me to finish getting the text box to go into editing mode when i click it. Code is correct but it's not doing it. :o
Jonathan Grieve
Treehouse Moderator 91,253 PointsJonathan Grieve
Treehouse Moderator 91,253 PointsThe interesting thing now is it's injecting 2 versions of the UI. Each of them updates the values of the todo's on both versions. On the top, todo's don't go into editing mode when you click on the label. On the one on of the bottom, it does. I have no clue why it's doing that.