Typescript (and now also ECMAScript 2017) gives you great asynchronous tools to use in the form of async/await. However, working with Angular 4, I get the feeling that using Observables is preferred. My question is: When I have a function which returns a single value once (ex: confirmation modal), are there any big advantages with using observables, or would promises (async/await) be preferred/just as good? Is it not weird to use observables? Do they not represent a stream of values?
Tl;dr:
async showDialog(msg: string): Promise<DialogResult>
vs.
showDialog(msg: string): Observable<DialogResult>