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) Controllers and Scope Creating a Controller

Christopher Johnson
Christopher Johnson
12,829 Points

Slips in the videos

I've noticed in this entire JS track that there are multiple instances where when the instructor goes to the console, the elements section does not match what we've done in our HTML files in workspaces. For example, in this video, when we go to see the results of

ng-click='helloWorld()'

the elements in the developer tools display that <body> also contains

class='ng-scope'

and

<div ng-controller='mainCtrl' class='list'>

also contains

class='list ng-scope'

We did not include those changes/additions in the instruction leading up to this.

Yes coming from a new user experience, this can be confusing to grasp. The JS code is injected into the clients HTML browser or 'DOM' automatically when you run the program.