AngularJS 6/11 exercise

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-angularjs/lessons/your-first-app/exercises/your-first-app-ng-repeat-i?action=resume

<In what way does your code behave incorrectly? Include ALL error messages.>

my code:

app.controller(‘MainController’, [’$scope’, function($scope) {
$scope.title = ‘I am learning javascript’;
$scope.promo = “I hope this will work”;
$scope.products = [
{
name: ‘The book of Trees’,
price: 19,
pubdate: new Date(‘2014’,‘03’,‘08’),
cover: ‘img/the-book-of-trees.jpg’
},
{
name: ‘Program or be Programmed’,
price: 8,
pubdate: new Date(‘2013’,‘08’,‘01’),
cover: ‘img/program-or-be-programmed.jpg’
}
];
}]);

error:

In $scope.products, did you add “The Book of Trees” object?

Check the name: title in your code.

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