Fix component selector prefix and add type annotations (#2276)
This commit is contained in:
@@ -1,10 +1,22 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'mifosx-task-management',
|
||||
templateUrl: './task-management.component.html',
|
||||
styleUrls: ['./task-management.component.scss']
|
||||
})
|
||||
export class TaskManagementComponent {
|
||||
constructor() {}
|
||||
export class TaskManagementComponent implements OnInit {
|
||||
tasks: Array<any>;
|
||||
|
||||
constructor() {
|
||||
this.tasks = [];
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.loadTasks();
|
||||
}
|
||||
|
||||
loadTasks(): void {
|
||||
// logic to load tasks
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user