You are working with the angular-cli?
Netanel Basal
3

It just work if I add the operator in my service.

export function toJSON<T>(this: Observable<Response>): Observable<PostResponseOf<T>>  {
return this.map((res: any) => <PostResponseOf<T>>extractResponseOf(res));
}
Observable.prototype.toJSON = toJSON;
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.