3. Workflow

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!

<Below this line, add a link to the EXACT exercise that you are stuck at.>

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

<In what way does your code behave incorrectly? Include ALL error messages.>

    <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’)
};
}]);

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

{{product.name | uppercase}}

{{product.price | currency}}

{{ product.pubdate }}

Missing ibhect and date filter.

{{ product.pubdate | date }}

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