mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||||
import { customTaskList, tasksList } from 'src/app/models/dailyworktask.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-task-list',
|
||||
templateUrl: './task-list.page.html',
|
||||
styleUrls: ['./task-list.page.scss'],
|
||||
})
|
||||
export class TaskListPage implements OnInit {
|
||||
|
||||
@Input() taskList: customTaskList[] = [];
|
||||
@Input() skeletonLoader: boolean = false
|
||||
@Output() goToTaskDetail = new EventEmitter<customTaskList>();
|
||||
|
||||
constructor() {
|
||||
console.log('taskList', this.taskList)
|
||||
}
|
||||
|
||||
ngOnInit() {}
|
||||
|
||||
viewTaskDetail(task: customTaskList) {
|
||||
this.goToTaskDetail.emit(task);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user