Skip to content

Commit

Permalink
added number of likes to recipe details page
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsshah committed Jun 25, 2018
1 parent f742c6c commit bc68d1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/recipe-details/recipe-details.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
</div>
<div class="col-lg-7 col-sm-12 text-center">
<h1>{{recipeDetails['name']}}</h1>
<br>
<h3 *ngIf="likedUsers.length === 1">{{likedUsers.length}} Like</h3>
<h3 *ngIf="likedUsers.length > 1">{{likedUsers.length}} Likes</h3>
</div>
</div>
</div>
Expand Down

0 comments on commit bc68d1f

Please sign in to comment.