Answer the question
In order to leave comments, you need to log in
How to write such logic through Observable?
How to write the same logic through Observable and not through Promise?
PS I tried it, it gives syntax errors =(
Answer the question
In order to leave comments, you need to log in
getUser(id: number) : Observable<User>{
return Observable.of(HEROES).filter(hero=>hero.id === id);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question