/
githubmirror
/
oppia
Обзор
Документация
Войти
/
githubmirror
/
oppia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
core/templates/services/loader.service.ts
39 строк
1 KB
Arnav Narula
Fix #9154: Remove static variables from i18n, collection, and loader services (#24995)
15 мар 2026, 17:49
Не верифицирован
15 мар 2026, 17:49
7cbcfbf
Код
Авторство
О чём код?
// Copyright 2020 The Oppia Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS-IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * @fileoverview A service to show loading screen. */ import {EventEmitter, Injectable} from '@angular/core'; @Injectable({ providedIn: 'root', }) export class LoaderService { loadingMessageChangedEventEmitter = new EventEmitter<string>(); get onLoadingMessageChange(): EventEmitter<string> { return this.loadingMessageChangedEventEmitter; } constructor() {} showLoadingScreen(message: string): void { this.loadingMessageChangedEventEmitter.emit(message); } hideLoadingScreen(): void { this.loadingMessageChangedEventEmitter.emit(''); } }