да конечно: public filterList(search?: string): void { this._isLoading = true; this.catalogService.getCatalogSmo({ search: search, start: this._start, end: this._end }) .pipe( delay(5000) ) .pipe( finalize(() => this._isLoading = false) ) .subscribe( response => { this._list = response; } ); }
Обсуждают сегодня