So what is the difference between of
operator and Observable.of
and what is the recommended way to create an observable?
import { Observable } from 'rxjs/Observable';
const obs$ = Observable.of(3);
or
import { of as observableOf } from 'rxjs';
const obs$ = observableOf(3);