diff --git a/src/app/pages/voting/voting-comment/voting-comment.component.html b/src/app/pages/voting/voting-comment/voting-comment.component.html new file mode 100644 index 00000000..3f237eb2 --- /dev/null +++ b/src/app/pages/voting/voting-comment/voting-comment.component.html @@ -0,0 +1,7 @@ +
+ {{comment.name}} , le + {{comment.date}} +

+ {{comment.text}} +

+
diff --git a/src/app/pages/voting/voting-comment/voting-comment.component.scss b/src/app/pages/voting/voting-comment/voting-comment.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/pages/voting/voting-comment/voting-comment.component.spec.ts b/src/app/pages/voting/voting-comment/voting-comment.component.spec.ts new file mode 100644 index 00000000..03acbaa3 --- /dev/null +++ b/src/app/pages/voting/voting-comment/voting-comment.component.spec.ts @@ -0,0 +1,25 @@ +import {async, ComponentFixture, TestBed} from '@angular/core/testing'; + +import {VotingCommentComponent} from './voting-comment.component'; + +describe('VotingCommentComponent', () => { + let component: VotingCommentComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [VotingCommentComponent] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(VotingCommentComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/voting/voting-comment/voting-comment.component.ts b/src/app/pages/voting/voting-comment/voting-comment.component.ts new file mode 100644 index 00000000..7bc61462 --- /dev/null +++ b/src/app/pages/voting/voting-comment/voting-comment.component.ts @@ -0,0 +1,19 @@ +import {Component, Input, OnInit} from '@angular/core'; +import {mockComments} from "../../../config/mock-comments"; + +@Component({ + selector: 'framadate-voting-comment', + templateUrl: './voting-comment.component.html', + styleUrls: ['./voting-comment.component.scss'] +}) +export class VotingCommentComponent implements OnInit { + + @Input() private comment = mockComments[0]; + + constructor() { + } + + ngOnInit() { + } + +}