AngularJS 6/11 exercise


#1



https://www.codecademy.com/courses/learn-angularjs/lessons/your-first-app/exercises/your-first-app-ng-repeat-i?action=resume

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?


#2

Check the name: title in your code.


#3

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