File

src/app/pages/voting/voting-comment/voting-comment.component.ts

Implements

OnInit

Metadata

selector framadate-voting-comment
styleUrls ./voting-comment.component.scss
templateUrl ./voting-comment.component.html

Index

Methods
Inputs

Constructor

constructor()

Inputs

comment
Default value : mockComments[0]

Methods

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

Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""