src/app/pages/voting/voting-comment/voting-comment.component.ts
selector | framadate-voting-comment |
styleUrls | ./voting-comment.component.scss |
templateUrl | ./voting-comment.component.html |
Methods |
Inputs |
constructor()
|
comment | |
Default value : mockComments[0]
|
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
import {Component, Input, OnInit} from '@angular/core';
import {mockComments} from "../../../config/mocks/mock-comments";
@Component({
selector: 'framadate-voting-comment',
templateUrl: './voting-comment.component.html',
styleUrls: ['./voting-comment.component.scss']
})
export class VotingCommentComponent implements OnInit {
@Input() comment = mockComments[0];
constructor() {
}
ngOnInit() {
}
}
<div class="comment" >
<span class="cname" >
{{comment.pseudo}}
</span >, le
<span class="date padding-btm-x1" >
{{comment.date.date }}
</span >
<blockquote >
<p class="text" >
{{comment.text}}
</p >
</blockquote >
</div >
./voting-comment.component.scss