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 trialAdam White
10,571 PointsAngular JS quiz question
I can't figure this out. I really hate this course.
In Javascript, how would you name a directive that could be attached as ‘my-custom-directive’? _____________
Thanks!
3 Answers
Garrett Darnell
18,751 PointsAdam,
Directives and such that are 'dasherized' in HTML are written in camelCase in JavaScript, so 'my-custom-directive' becomes 'myCustomDirective'.
Adam White
10,571 PointsThanks, Garrett. I remember that now that you say it. Angular is melting my brain.
Janette Norris
7,381 PointsAdam and Garrett- Thanks for your question/help with something that (now) looks ridiculously easy! I too, was challenged by JavaScript and am working really hard to get through Angular. But each time I learn something, it looks obvious in hindsight. Thanks again!