Skip to content

Commit 16c4be0

Browse files
removed empty constructor and ngOnInit
1 parent cf0a2eb commit 16c4be0

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/app/board/shared/task-card/task-card.component.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { Component, OnInit, Input, trigger, state, animate, keyframes, style, transition } from '@angular/core';
1+
import { Component, Input } from '@angular/core';
2+
import { trigger, state, animate, keyframes, style, transition } from '@angular/animations';
3+
import { TaskModel } from '../../../models/task-model';
24

35
@Component({
46
selector: 'app-board-task-card',
@@ -17,13 +19,7 @@ import { Component, OnInit, Input, trigger, state, animate, keyframes, style, tr
1719
])
1820
]
1921
})
20-
export class TaskCardComponent implements OnInit {
21-
@Input() task;
22-
@Input() tileName;
23-
constructor() { }
24-
25-
ngOnInit() {
26-
}
27-
28-
22+
export class TaskCardComponent {
23+
@Input() task: TaskModel;
24+
@Input() tileName: string;
2925
}

0 commit comments

Comments
 (0)