observable and promise example Example: rxjs promise to observable import { from } from 'rxjs'; const observable = from(promise);