Ignore:
File:
1 edited

Legend:

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

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