1 <div class=
"root-comment">
2 <img [src]=
"getAvatarUrl(comment.account)" alt=
"Avatar" />
5 <div class=
"comment-account-date">
6 <div class=
"comment-account">{{ comment.by }}
</div>
7 <div class=
"comment-date">{{ comment.createdAt | myFromNow }}
</div>
9 <div>{{ comment.text }}
</div>
11 <div class=
"comment-actions">
12 <div *
ngIf=
"isUserLoggedIn()" (click)=
"onWantToReply()" class=
"comment-action-reply">Reply
</div>
16 *
ngIf=
"isUserLoggedIn() && inReplyToCommentId === comment.id"
19 [parentComment]=
"comment"
21 (commentCreated)=
"onCommentReplyCreated($event)"
22 ></my-video-comment-add>
24 <div *
ngIf=
"commentTree" class=
"children">
25 <div *
ngFor=
"let commentChild of commentTree.children">
27 [comment]=
"commentChild.comment"
29 [inReplyToCommentId]=
"inReplyToCommentId"
30 [commentTree]=
"commentChild"
31 (wantedToReply)=
"onWantedToReply($event)"
32 (resetReply)=
"onResetReply()"