import { IDnHttpExtraConfig } from '../../services/http-result-extra.config'; export class DnLoadingBase { loading = false; loadingText = ''; showContentOnLoading = true; context: any = this; protected getLoading(): IDnHttpExtraConfig { return { loadingBase: this }; } protected hideLoading() { this.showContentOnLoading = true; this.loading = false; this.loadingText = ''; } protected loadingContext() { return { context: this.context, loading: this.loading, loadingText: this.loadingText }; } protected showLoading(showContentOnLoading = true) { this.showContentOnLoading = showContentOnLoading; this.loading = true; this.loadingText = ''; } }