刚刚从rxjs 5 / angular 5移动到rxjs 6 / angular 6,经历了这个
migration-guide.似乎无法弄清楚现在应该是什么,任何帮助表示赞赏.
import { Observable,of } from 'rxjs'; [ts] 'of' is declared but its value is never read. // trivial example of what im trying to replace isLoggedIn(): Observable<boolean> { return Observable.of(true); }
您现在可以从rxjs导入.所以….
原文链接:https://www.f2er.com/angularjs/141685.htmlimport { Observable,of } from 'rxjs'; // trivial example of what im trying to replace isLoggedIn(): Observable<boolean> { return of(true); }