I am coming from Angular1, and, as a promise of chaining, I want to have similar behavior.
I have a method in someclass: -
{......... doLogin (username, password) { ....... ....... return this.http.get(api).subscribe( data => {.....},
Then I call this method: -
someclass.doLogin(username, password).subscribe( data => { },
As I mentioned as comments on the above code, the subscription is not called in the caller's class.
Any suggestion on how to do this?
angular rxjs
VISHAL DAGA
source share