3. Workflow, first exercise.I get the following message: Did you add $scope.product to the controller?


#1

My code.

MainController.js

app.controller('MainController', ['$scope', function($scope) {
$scope.title = 'title';
$scope.promo = 'haha';
$scope.product = {name: 'The Book of trees', price: 19};
}]);


Whatever I did,everything is just itself!Don't show up their value
#2
app.controller('MainController', ['$scope', function($scope) { 
  $scope.title = 'Top Sellers'; 
  $scope.promo = "50 CENT";
  $scope.product = {
   				name: 'The Book of Trees',
    			price: 19,
    			pubdate: new Date('2014', '03', '08')
  };
}]);