Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript AngularJS Basics (1.x) Getting Started with Angular Your First Angular Directive

I entered everything in correctly. The page loads but the "template" text does not appear

Hello, please see the following snapshot: https://w.trhou.se/6l44rdecd3, what is missing?

Updated snapshot: https://w.trhou.se/wrk1aio6xm

2 Answers

Justin Coen
seal-mask
.a{fill-rule:evenodd;}techdegree
Justin Coen
Full Stack JavaScript Techdegree Student 12,829 Points

Most likely this issue is being caused by the semi-colon after

angular.module('todoListApp');

Try changing the line of code to just

angular.module('todoListApp')

I deleted it, and it still doesn't work (https://w.trhou.se/wtrk60yw8y).

Once I preview and look at the page source, the following is missing, but it is linked as it should in the index.html:

<script src="scripts/hello-world.js" type="text/javascript"></script>
kevin hudson
PLUS
kevin hudson
Courses Plus Student 11,584 Points

I know this is many years too late but make sure after you delete the semicolon you ensure there isn't a space between the 'dot' and ()

angular.module('todoListApp').directive