Handling HTTP request in an Angular application is a crucial part. In this article we will go through below methods from RxJs to handle HTTP requests.
ObservableInput
or a dictionary Object
of ObservableInput
and returns an Observable
that emits either an array of values in the exact same order as the passed array, or a dictionary of values in the same shape as the passed dictionary.Use case: One use case could be we want to convert all observables into observables of JSON objects.
signature: map<T, R>(project: (value: T, index: number) => R, thisArg?: any): OperatorFunction<T, R>
#angular #front-end-development #rxjs #http-request