So I have following piece of code:
someService.doSomething().subscribe(result=>{
this.handleMyResult(result)
}
And I would like to do something like that:
someService.doSomething().subscribe(this.handleMyResult);
This does not work in 100%. I think that I might have some sytax issue here, as handleMyResult
gets called indeed, but argument passed in is undefined
Is it possible to make it work??