AngularJS Help Needed Please


#1

Hello,
I stumbled upon an obstacle and was hoping you would be able to assist me. I am currently tackling '5. Filters II' 5/11 for learning AngularJS

I cannot seem to advance past the first instruction. Any help would be appreciated.


#2

As the intructions say your just adding a new property called:

pubdate: new Date('2014', '03', '08')

So that is preety easy to implement to code, for example if you had your $scope.product like this:

$scope.products = [
  	{ 
    	name: 'The Book of Trees', 
    	price: 19, 
      	cover: 'img/the-book-of-trees.jpg',
    	likes: 0,
    	dislikes: 0
  	}

And just put it pubdate:

$scope.products = [
  	{ 
    	name: 'The Book of Trees', 
    	price: 19, 
    	pubdate: new Date('2014', '03', '08'), 
    	cover: 'img/the-book-of-trees.jpg',
    	likes: 0,
    	dislikes: 0
  	}

So you just do that for all of your code and it should work. Hope this helped!