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

2 Answers

Steven Parker
Steven Parker
229,732 Points

I think a major issue is repeating the title for each item. You could move the title out of the list:

  <h1 ng-click="helloWorld()">My TODOs</h1>  <!-- this line moved up from 2 below -->
  <div ng-controller="mainCtrl" class="list">
    <div class="item" ng-class="{'editing-item': editing}" ng-repeat="todo in todos">

Otherwise, you could make it smaller yet by using less padding or smaller font sizes in the CSS.

Sean Flanagan
Sean Flanagan
33,235 Points

Hi Steven. Thanks for your response. Is there any way I can paste a screenshot to this thread so I can show you what I mean?

Steven Parker
Steven Parker
229,732 Points

I forked your snapshot and saw it for myself. I revised my answer.

Sean Flanagan
Sean Flanagan
33,235 Points

Hi Steven. That did the trick. I upvoted your original answer and gave it Best Answer. Thanks, Sean.