Website Summary Files Commits Branches @commit @diff @stats
path: root / src / app / components / feed / feed.component.html
diff options
context:
space:
mode:
Commitafe30ab78432d16c42b2f19e3bd8355e3f27a0e1 (patch)
Author
 Danail Dimitrov <danaildimitrov321@gmail.com>
2021-03-14 21:06:33 +0200
Committer
 Danail Dimitrov <danaildimitrov321@gmail.com>
2021-03-14 21:06:33 +0200
Files0b87883bfc07b4f0ebd36b2244f1bda020074186 /src/app/components/feed/feed.component.html
DevHive-Angular-afe30ab78432d16c42b2f19e3bd8355e3f27a0e1.tar
DevHive-Angular-afe30ab78432d16c42b2f19e3bd8355e3f27a0e1.tar.gz
DevHive-Angular-afe30ab78432d16c42b2f19e3bd8355e3f27a0e1.zip
Parentb428eaddb497ac0edc97020c310fa72eeab82e7e (diff)
fixed rating not beeing highlighted on init and and added capability of rating to handle multiple posts
1 files changed, 2 insertions, 2 deletions
-rw-r--r--src/app/components/feed/feed.component.html4
diff --git a/src/app/components/feed/feed.component.html b/src/app/components/feed/feed.component.html
index 230c27b..5ff2dca 100644
--- a/src/app/components/feed/feed.component.html
+++ b/src/app/components/feed/feed.component.html
@@ -40,8 +40,8 @@
None of your friends have posted anything yet!<br>
Try refreshing your page!
</div>
- <div *ngFor="let friendPost of posts" class="post">
- <app-post [paramId]="friendPost.postId.toString()"></app-post>
+ <div *ngFor="let friendPost of posts; let i = index" class="post">
+ <app-post [paramId]="friendPost.postId.toString()" [index]="i"></app-post>
</div>
</section>
</section>