5. Filters II


#1

Trying to figure out how to add a property to $scope.product

$scope.title = 'This Month\'s Bestsellers';
$scope.promo = 'The most popular books this month.';
$scope.product = {
name: 'The Book of Trees',
price: 19
}
}]);


#2

same problem :frowning: still don't know how to add


#3

you can do like this:
{
name: 'The Book of Trees',
price: 19,
pubdate: new Date('2014', '03', '08')
};


#4

Ahh, may just found it. Thanks.


#5

Yeah. :sunglasses: lmao