aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/profile/profile.component.html
diff options
context:
space:
mode:
authorDanail Dimitrov <danaildimitrov321@gmail.com>2021-03-14 21:06:33 +0200
committerDanail Dimitrov <danaildimitrov321@gmail.com>2021-03-14 21:06:33 +0200
commitafe30ab78432d16c42b2f19e3bd8355e3f27a0e1 (patch)
tree0b87883bfc07b4f0ebd36b2244f1bda020074186 /src/app/components/profile/profile.component.html
parentb428eaddb497ac0edc97020c310fa72eeab82e7e (diff)
downloadDevHive-Angular-afe30ab78432d16c42b2f19e3bd8355e3f27a0e1.tar
DevHive-Angular-afe30ab78432d16c42b2f19e3bd8355e3f27a0e1.tar.gz
DevHive-Angular-afe30ab78432d16c42b2f19e3bd8355e3f27a0e1.zip
fixed rating not beeing highlighted on init and and added capability of rating to handle multiple posts
Diffstat (limited to 'src/app/components/profile/profile.component.html')
-rw-r--r--src/app/components/profile/profile.component.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/components/profile/profile.component.html b/src/app/components/profile/profile.component.html
index 0e5f633..5c21cee 100644
--- a/src/app/components/profile/profile.component.html
+++ b/src/app/components/profile/profile.component.html
@@ -52,8 +52,8 @@
<div id="no-posts" *ngIf="userPosts.length === 0">
{{ user.firstName }} {{ user.lastName }} hasn't posted anything yet!
</div>
- <div *ngFor="let userPost of userPosts">
- <app-post [paramId]="userPost.postId.toString()"></app-post>
+ <div *ngFor="let userPost of userPosts; let i = index">
+ <app-post [paramId]="userPost.postId.toString()" [index]="i"></app-post>
</div>
</div>
</div>