Home:ALL Converter>Still use Promises in Angular? Is Angular Observable focused?

Still use Promises in Angular? Is Angular Observable focused?

Ask Time:2022-01-27T15:40:40         Author:Peter Schuhknecht

Json Formatter

I was looking for a best practice in Angular whether to use Observables or Promises.

All the docs seem to use Observables, even on Angular Conferences they are just teaching that way. But most of the use cases Promises would be perfect (e.g. getting single data from backend). Is there a reason, Angular is just concentrating on Observables.

I remember that there were a section about Promises in the Angular Docs but they removed everything regarding Promises at all.

Author:Peter Schuhknecht,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/70874867/still-use-promises-in-angular-is-angular-observable-focused
yy