File

src/app/pages/voting/comments-list/comments-list.component.ts

Metadata

selector framadate-comments-list
styleUrls ./comments-list.component.scss
templateUrl ./comments-list.component.html

Index

Properties

Constructor

constructor(config: ConfigService)
Parameters :
Name Type Optional
config ConfigService No

Properties

Public config
Type : ConfigService
import {Component} from '@angular/core';
import {ConfigService} from "../../../services/config.service";

@Component({
    selector: 'framadate-comments-list',
    templateUrl: './comments-list.component.html',
    styleUrls: ['./comments-list.component.scss']
})
export class CommentsListComponent {

    constructor(public config: ConfigService) {

    }

}
<section class="name" >
    <label for="name" >
        <i class='fa fa-user' ></i >
        Votre nom :</label >
    <input
        type="text"
        name="name"
        id="name"
        [(ngModel)]="config.myName" >
    <input
        type="text"
        name="name"
        id="email"
        [(ngModel)]="config.myEmail" >
    <i class='fa fa-envelope' ></i >
</section >
<div
    class="comments"
    id='comments' >
    <h2 class="margin-top-x7" >Laisser un commentaire</h2 >
    <label for="crname" >Votre nom :</label >
    <input
        type="text"
        class="margin-btm-x3"
        name="crname"
        [(ngModel)]='config.myName'
        id="crname" >
    <input
        type="text"
        name="cremail"
        id="email_comment"
        [(ngModel)]="config.myEmail" >
    <label for='email_comment' >
        <i class='fa fa-envelope' ></i >
    </label >
    <div >
        <label for="comment" >Votre commentaire :</label >
        <br >
        <textarea
            name="comment"
            id="comment"
            [(ngModel)]='config.myComment'
        >
      </textarea >
    </div >
    <input
        type="submit"
        name="add-comment"
        class="btn btn--primary btn--outline"
        value="Ajouter mon commentaire"
        (click)='config.addComment()' >
    <div
        class='comments-part'
        *ngIf='config.currentPoll' >

        <framadate-voting-comment
            [comment]="c"
            *ngFor="let c of config.currentPoll.comments " >
        </framadate-voting-comment >
    </div >
</div >

./comments-list.component.scss

Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""