From 2497563ad6cd3070f640ad13ba97339b70b48cd7 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Wed, 2 Nov 2022 13:34:53 +0300 Subject: [PATCH] add status to loading screen --- .../loading-screen/loading-screen.component.html | 1 + .../components/loading-screen/loading-screen.component.ts | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/components/loading-screen/loading-screen.component.html b/src/app/components/loading-screen/loading-screen.component.html index a400711..c0da824 100644 --- a/src/app/components/loading-screen/loading-screen.component.html +++ b/src/app/components/loading-screen/loading-screen.component.html @@ -1 +1,2 @@

loading-screen works!

+

{{status}}

diff --git a/src/app/components/loading-screen/loading-screen.component.ts b/src/app/components/loading-screen/loading-screen.component.ts index 98e6f2f..270dc19 100644 --- a/src/app/components/loading-screen/loading-screen.component.ts +++ b/src/app/components/loading-screen/loading-screen.component.ts @@ -1,13 +1,18 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, OnInit, Input } from '@angular/core'; @Component({ templateUrl: './loading-screen.component.html', styleUrls: ['./loading-screen.component.scss'] }) export class LoadingScreenComponent implements OnInit { + @Input() status!:string constructor() { } + SetStatus(newStatus:string){ + this.status = newStatus + } + ngOnInit(): void { }