Change store storage system.

This commit is contained in:
2022-03-04 22:54:52 +01:00
parent 21bd3826e6
commit 7686057022
8 changed files with 54 additions and 27 deletions

View File

@@ -1,16 +1,23 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { FormControl, Validators } from '@angular/forms';
import { AfterViewInit, Component, Input, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Task } from 'src/app/core/entity/task';
import { TaskListService } from 'src/app/core/service/task-list.service';
@Component({
selector: 'app-task-display',
templateUrl: './task-display.component.html',
styleUrls: ['./task-display.component.scss']
})
export class TaskDisplayComponent implements OnInit {
taskNameControl = new FormControl(undefined);
export class TaskDisplayComponent implements AfterViewInit {
@Input() task?: Task;
titleControl = new FormControl(this.task?.title);
constructor() { }
constructor(
private _taskListService: TaskListService
) {}
ngOnInit(): void {
ngAfterViewInit(): void {
this.titleControl.setValue(this?.task?.title);
}
}