5/11 Syntax Error?


#1

app.controller('MainController', ['$scope', function($scope) {
$scope.title = 'Awesome Music'; $scope.promo = 'More awesome beats';
$scope.product = {
name: 'The Book of Trees',
price: 19,
pubdate: new Date('2014', '03', '08')
}

Here is my code. This breaks due to an apparent syntax error that I am not seeing. Please help.

Cheers.


#2

Was able to solve it.

app.controller('MainController', ['$scope', function($scope) {
$scope.title = 'This Month\'s Bestsellers';
$scope.promo = 'The most popular books this month.';
$scope.product = {
name: 'The Book of Trees',
price: 19,
pubdate: new Date('2014', '03', '08')
}
}]);