diff --git a/src/app/components/shared/comment/comment.component.html b/src/app/components/shared/comment/comment.component.html new file mode 100644 index 0000000000000000000000000000000000000000..834776dfaa0ec0d4c5d13c17524ac853a8d67ec3 --- /dev/null +++ b/src/app/components/shared/comment/comment.component.html @@ -0,0 +1,7 @@ +<mat-card> + <mat-card-title>{{comment.subject}}</mat-card-title> + <mat-divider></mat-divider> + <mat-card-content> + <p>{{comment.body}}</p> + </mat-card-content> +</mat-card> diff --git a/src/app/components/shared/comment/comment.component.scss b/src/app/components/shared/comment/comment.component.scss new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/app/components/shared/comment/comment.component.spec.ts b/src/app/components/shared/comment/comment.component.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..5d05159bb6d681d54e8586e27b3ccccf1fb82289 --- /dev/null +++ b/src/app/components/shared/comment/comment.component.spec.ts @@ -0,0 +1,26 @@ +/*import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { CommentComponent } from './comment.component'; + +describe('CommentComponent', () => { + let component: CommentComponent; + let fixture: ComponentFixture<CommentComponent>; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ CommentComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(CommentComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); +*/ diff --git a/src/app/components/shared/comment/comment.component.ts b/src/app/components/shared/comment/comment.component.ts new file mode 100644 index 0000000000000000000000000000000000000000..131375367ae2fef9218b07cb26e70670362976d9 --- /dev/null +++ b/src/app/components/shared/comment/comment.component.ts @@ -0,0 +1,15 @@ +import { Component, Input, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-comment', + templateUrl: './comment.component.html', + styleUrls: ['./comment.component.scss'] +}) +export class CommentComponent implements OnInit { + @Input() comment; + constructor() { } + + ngOnInit() { + } + +}