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
}
}]);
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
}
}]);
same problem still don’t know how to add
you can do like this:
{
name: ‘The Book of Trees’,
price: 19,
pubdate: new Date(‘2014’, ‘03’, ‘08’)
};
Ahh, may just found it. Thanks.
Yeah. lmao