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 Adding Data To Your App Using ng-model

ng-inspector not working

Hey guys, My ng-inspector is not working and I'm getting unexpected errors. I need some solutions to move forward. Did any one have the same problem?

Here's my latest code snippet: https://w.trhou.se/ms3azocwc9

Unfortunately I'm unable to move forward with these bugs. HELP!!

1 Answer

You misspelled Function on line 10. This should work:

angular.module("todoListApp", [])

  .controller('mainCtrl', function($scope){
    $scope.helloWorld = function(){
      console.log('Hello there! This is the helloWorld controller function, in the mainCtrl');
    };
  })

  .controller('coolCtrl', function($scope){
    $scope.whoAmI = function(){  
      console.log("Hello there, this is the coolCtrl function");
    };
  })

  .conroller('imASibling', function($scope){
    $scope.foobar = 1234;
    //do something
  });

Cheers Jaro that solved the problem. Can you please tell how you debugged it?

I just shortly looked over your code and saw it ..

Cheers mate appreciate it.