1

Please, I need help with my code that does not work:

this.howToUseObservables().subscribe(ress => alert('in app ' + ress));

Why testSubject.next('test'); does not fire at all? thanks

howToUseObservables(): Subject<any> {
const testSubject: Subject<any> = new Subject();
testSubject.next('test');
return testSubject;
}

this.howToUseObservables().subscribe(ress => alert('in app ' +ress));
nAviD
  • 2,784
  • 1
  • 33
  • 54

0 Answers0