add status to loading screen

This commit is contained in:
cyber-dream 2022-11-02 13:34:53 +03:00
parent 9bdc1c9cd1
commit 2497563ad6
2 changed files with 7 additions and 1 deletions

View File

@ -1 +1,2 @@
<p>loading-screen works!</p> <p>loading-screen works!</p>
<p>{{status}}</p>

View File

@ -1,13 +1,18 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit, Input } from '@angular/core';
@Component({ @Component({
templateUrl: './loading-screen.component.html', templateUrl: './loading-screen.component.html',
styleUrls: ['./loading-screen.component.scss'] styleUrls: ['./loading-screen.component.scss']
}) })
export class LoadingScreenComponent implements OnInit { export class LoadingScreenComponent implements OnInit {
@Input() status!:string
constructor() { } constructor() { }
SetStatus(newStatus:string){
this.status = newStatus
}
ngOnInit(): void { ngOnInit(): void {
} }