20 lines
402 B
TypeScript
20 lines
402 B
TypeScript
import { Component } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-main',
|
|
standalone: false,
|
|
templateUrl: './main.component.html',
|
|
styleUrl: './main.component.css'
|
|
})
|
|
export class MainComponent {
|
|
currentSprint = 4;
|
|
|
|
isCompleted(index: number): boolean {
|
|
return index <= this.currentSprint;
|
|
}
|
|
|
|
isEditable(index: number): boolean {
|
|
return index === this.currentSprint;
|
|
}
|
|
}
|