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 AngularJS Basics (1.x) Improving Our Todo App Create a Custom Directive For β€œtodos”

Why 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

I 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...