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));