Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Clients/Angular/finki-chattery/src/app/core/state/question-facade.service.ts

    ra3b5f34 r77cfe5b  
    22import { Injectable } from '@angular/core';
    33import { Action, Store } from '@ngrx/store';
    4 import { Observable, throwError } from 'rxjs';
     4import { Observable, Subject, throwError } from 'rxjs';
    55import { catchError, filter, map } from 'rxjs/operators';
    66
     
    2525})
    2626export class QuestionFacadeService {
     27  private questionSearchedSubject = new Subject<any>();
     28
    2729  effectWorking$: Observable<boolean | HttpErrorResponse>;
    2830
     
    4143      })
    4244    );
     45  }
     46
     47  public questionSearched(): Observable<void> {
     48    return this.questionSearchedSubject.asObservable();
    4349  }
    4450
     
    8187  public searchQuestions(searchText: string, categories: string[]): void {
    8288    this.dispatchEffect(new GetSearchQuestions(searchText, categories));
     89    this.questionSearchedSubject.next(Math.random());
    8390  }
    8491
Note: See TracChangeset for help on using the changeset viewer.