observable.empty angular 8 code example Example: empty observable rxjs import { of} from 'rxjs'; of(); //creates empty Observable