Changes in src/Clients/Angular/finki-chattery/src/app/core/state/question-facade.service.ts [a3b5f34:77cfe5b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Clients/Angular/finki-chattery/src/app/core/state/question-facade.service.ts
ra3b5f34 r77cfe5b 2 2 import { Injectable } from '@angular/core'; 3 3 import { Action, Store } from '@ngrx/store'; 4 import { Observable, throwError } from 'rxjs';4 import { Observable, Subject, throwError } from 'rxjs'; 5 5 import { catchError, filter, map } from 'rxjs/operators'; 6 6 … … 25 25 }) 26 26 export class QuestionFacadeService { 27 private questionSearchedSubject = new Subject<any>(); 28 27 29 effectWorking$: Observable<boolean | HttpErrorResponse>; 28 30 … … 41 43 }) 42 44 ); 45 } 46 47 public questionSearched(): Observable<void> { 48 return this.questionSearchedSubject.asObservable(); 43 49 } 44 50 … … 81 87 public searchQuestions(searchText: string, categories: string[]): void { 82 88 this.dispatchEffect(new GetSearchQuestions(searchText, categories)); 89 this.questionSearchedSubject.next(Math.random()); 83 90 } 84 91
Note:
See TracChangeset
for help on using the changeset viewer.