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