Codecademy can't detect my code?


#1



I'm having some trouble with 1-2. Whenever I add the promo property to $scope, it doesn't seem to find it, and I'm stuck on the second step. Here's what's in my MainController.js:

app.controller('MainController', ['$scope', function($scope) {
$scope.my = 'Top Sellers in Books';
$scope.promo = "";
}]);


Here's the link: https://www.codecademy.com/courses/learn-angularjs/lessons/your-first-app/exercises/your-first-app-hello-angularjs-ii?action=lesson_resume


#2

and what happens if you use

app.controller('MainController', ['$scope', function($scope) { 
 $scope.my = 'Top Sellers in Books';
$scope.promo = "My promo";
}]);

#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.