Format the product's pubdate by piping it to the date filter.

how to do this??


You have to modify both your controller.js and index.html files

For the controller, you're going to be modifying the property of $scope.product, so you'll have to add the variable of pubdate in there and then telling AngularJS what the value of the date is.

Next, you'll have to go into index.html in the

tag and adding in the pubdate expression between tags so AngularJS can bind the two together.


Piping means to add a pipe symbol which is either Shift + \ or for other keyboards its the AltGr + Shift + ~/#/\ keys.

So do product.price | date