18 lines
410 B
TypeScript
18 lines
410 B
TypeScript
import {Component, OnInit} from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-current-score',
|
|
imports: [],
|
|
templateUrl: './current-score.component.html',
|
|
styleUrl: './current-score.component.css'
|
|
})
|
|
export class CurrentScoreComponent implements OnInit{
|
|
round: string;
|
|
|
|
ngOnInit(): void {
|
|
this.round = localStorage.getItem('question')[0]
|
|
}
|
|
|
|
protected readonly localStorage = localStorage;
|
|
}
|