I\'m new to the concepts of observables and need some help with a conversion.
I have a service which returns an Observable
from a Http request,
As of angular 4.3 this can be done automatically.
Example:
export class SomeService {
constructor(private http: HttpClient) {} // <--- NOTE: HttpClient instead of Http
getSome(): Observable {
return this.http.get('myUrl');
}
}
So in your case that would be:
return this.http.post
Again, use the HttpClient
instead of Http