<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
Alright got a problem yet again. Not sure what I did wrong on this because I followed the same format as before and it worked on everything but this. I think I formatted something incorrectly because of the way it looks at the end of line “one”. I don’t like the way it looks because so far I have been adding everything to line “two” and it now tells me on this exercise that I have to put all of the closers on the first part. What exactly am I doing wrong and how do I fix it? HTML part is absolutely correct.
tl;dr: I screwed up and I don’t know where. Halp.
<Below this line, add a link to the EXACT exercise that you are stuck at.>
MainController.js
I did as you said and I still am getting an error asking if I displayed the pubdate. I know the HTML is correct so long as it is supposed to follow the same format as the other ones.
app.controller('MainController', ['$scope', function($scope) {$scope.title = 'Top Sellers In Cacti'; $scope.promo = 'BOGO Moon Cacti'; $scope.product = { name: 'The Book of Trees', price: 19, pubdate: new Date('2014', '03', '08')};
}]);
Also can you explain how to make it less ugly looking like you did in my post above? Does it still work like it should? And in that regard is it like HTML where you can tab over as much as you want and skip as many lines as you want and it will still work correctly?
After restarting this exercise I was able to get first two checkpoints marked using your code.
Please, restart the exercise, this is probably some caching problem. Click Get Help in the right, lower corner and select I want to restart this exercise.
I thought that you have a problem with the 1 or the 2 checkpoint.
The third part of instructions asks you to use date filter on the pubdate. You have to follow the same syntax you have used to apply currency filter to the product.price here:
Please, restart the exercise, this is probably some caching problem. Click Get Help in the right, lower corner and select I want to restart this exercise.