Skip to content

Commit

Permalink
✨ Add views property to Feed model and update news-container component
Browse files Browse the repository at this point in the history
  • Loading branch information
marcode24 committed Jul 17, 2024
1 parent 71c4022 commit 2472ae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/core/models/feed.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export class Feed {
public image: string,
public website: Website,
public likes: number,
public views: number,
public inUser?: boolean,
public liked?: boolean,
public readingTime?: number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="options">
<div class="option default">
<i class="bx bx-show"></i>
<span> {{ 10 }} </span>
<span *ngIf="feed.views || feed.views > 0"> {{ feed.views }} </span>
</div>
<div class="separator"></div>
<div class="option" (click)="modifyPreference(feed._id, 'liked')">
Expand Down

0 comments on commit 2472ae2

Please sign in to comment.