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 trialGabriel Santos Dal Belo
2,812 PointsI make the right code but the system is not passing.
angular.module("foobar", []) .controller('coolController', function($scope) { $scope.someNumber = 1; }) .controller('coolCtrl', function($scope) { $scope.whoAmI = function() { console.log("Hello there, this is the coolCtrl function!"); };
$scope.helloWorld = function() { console.log("This is not the main ctrl:"); } }) .controller('imASibling', function($scope) { $scope.foobar = 1234;
// do other cool stuff! });
angular.module("foobar", [])
.controller('coolController', function($scope) {
$scope.someNumber = 1;
})
.controller('coolCtrl', function($scope) {
$scope.whoAmI = function() {
console.log("Hello there, this is the coolCtrl function!");
};
$scope.helloWorld = function() {
console.log("This is not the main ctrl:");
}
})
.controller('imASibling', function($scope) {
$scope.foobar = 1234;
// do other cool stuff!
});
1 Answer
Jaro Schwab
8,957 PointsHey. Make sure you add the "someNumber" variable into the body of the coolCtrl, and not of the CoolController!
Gabriel Santos Dal Belo
2,812 PointsGabriel Santos Dal Belo
2,812 PointsThanks.