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) Using Angular's Built In Directives Using ng-blur and ng-class to Improve User Experience

Matthew Gomez
Matthew Gomez
395 Points

theres seems to be a video missing before this one.

what happened to the video before this one. there seems to be a leap here.

2 Answers

Make sure that you've put 'class="item"' into the div that contains the ng-repeat directive. The CSS that isn't showing is being applied to the item class.

Yes, in addition to the CSS, I noticed that the order of the h1 and the first div have changed since the last video.

You need to get the h1 outside the mainCtrl like this:

  <h1 ng-click="helloWorld()">My TODOs</h1>  
  <div ng-controller="mainCtrl" 
       class="list">
    <div ng-repeat="todo in todos" 
    ...