From 00053fbbc23d5bc4a7fe58c12edbe52f9fc39686 Mon Sep 17 00:00:00 2001 From: Louis Peter <Louis.Peter@mni.thm.de> Date: Mon, 18 Mar 2019 11:19:50 +0100 Subject: [PATCH] Add input type for comment --- src/app/components/shared/comment/comment.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/components/shared/comment/comment.component.ts b/src/app/components/shared/comment/comment.component.ts index 131375367..9ce76d869 100644 --- a/src/app/components/shared/comment/comment.component.ts +++ b/src/app/components/shared/comment/comment.component.ts @@ -1,4 +1,5 @@ import { Component, Input, OnInit } from '@angular/core'; +import { Comment } from '../../../models/comment'; @Component({ selector: 'app-comment', @@ -6,7 +7,7 @@ import { Component, Input, OnInit } from '@angular/core'; styleUrls: ['./comment.component.scss'] }) export class CommentComponent implements OnInit { - @Input() comment; + @Input() comment: Comment; constructor() { } ngOnInit() { -- GitLab