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) Getting Started with Angular Your First Angular Directive

Angular Basics - Stage 1 Video 5 coding mistake!!!!!!!!!!

On this video at 2:43 the code in the hello-world.js : angular.module('todoListApp') .directive('helloWorld', function () { return { template: "This is the hello world directive!" }; });

IT WAS NOT LOADING IN THE PREVIEW UNITL I REMOVED () !!!! AND REWRITE THE CODE TO:

angular.module('todoListApp') .directive('helloWorld', function { return { template: "This is the hello world directive!" }; });

NOW IT IS LOADING AND I CAN SEE IT IN THE PREVIEW!!!! SORRY FOR THIS NOTE, ITS THE FIRST TIME I START CODING!!!! Am I right?

Hey! Are you using the workspace? I've tested it and having the brackets is required for me to display the message. I'll include my text below:

angular.module('todoListApp')
.directive('helloWorld', function() {
  return {
    template: "This is the hello world direction!"
  };
});

Could you show us your index.html file? :) No need to apologize, keep up the great work!!

Nathan Heffley
Nathan Heffley
19,878 Points

This is the first coding you have ever done?

You are in the wrong place. Hopefully you figured that out by now. Go check out all the recommended JavaScript courses first, or do the Full JavaScript Stack track.