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 trialLeon Segal
14,754 PointsWhy is the instantiated template injected into todos tag, specifically?
I am struggling to see why the instantiated code is specifically injected into the todos tag:
<todos></todos/>
I have tried to see where in the app this is specified, but I am a bit lost.
Anyone able to help?
Thanks
2 Answers
Leon Segal
14,754 PointsI know that it comes from the directive. It's just that when I changed the tag name to <todo><todo>, then also changed the directive, it didn't work, so it confused me.
When I changed the tag to <something_else></something_else> and also the directive, it then worked.
May be a bug in angular...
Tatiana Vasilevskaya
Python Web Development Techdegree Graduate 28,600 PointsThe <todos> tag is defined by the 'todos' directive. The name of the tag is the same as the name of the directive. Maybe refreshment from the beginning of the course will help you. Remember our first 'helloWorld' directive? https://teamtreehouse.com/library/angular-basics/getting-started-with-angular/your-first-angular-directive