3. Workflow


#1

Hey guys,

I'm not sure why it's giving me a error message of my pubdate not displaying correctly. Any help would be muched appreciated!

https://www.codecademy.com/courses/learn-angularjs/lessons/your-first-app/exercises/your-first-app-filters-ii

    <div class="col-md-6">
      <div class="thumbnail">
        <img src="img/the-book-of-trees.jpg">
        <p class="title">
          {{product.name | uppercase}}</p>
        <p class="price"> 
          {{product.price | currency}} </p>
        <p class="date"> 
          {{pubdate}} </p>
      </div>
    </div>

$scope.product =
{
name: 'The Book of Trees',
price: 19,
pubdate: new Date('2014', '03','08')
};
}]);


#2

errgh i got it: Forgot the product.pubdate. See my revised code here:


{{product.name | uppercase}}



{{product.price | currency}}



{{ product.pubdate }}



#3

Missing ibhect and date filter.

{{ product.pubdate | date }}

#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.