Angular - “has no exported member 'Observable'”

后端 未结 14 1885
陌清茗
陌清茗 2020-12-12 11:16

Typescript code:

import { Injectable } from \'@angular/core\';
import { Observable } from \'rxjs/Observable\';
import { of         


        
14条回答
  •  北海茫月
    2020-12-12 11:42

    This might be helpful in Angular 6 for more info refer this Document

    1. rxjs: Creation methods, types, schedulers and utilities
    import { Observable, Subject, asapScheduler, pipe, of, from, interval, merge, fromEvent } from 'rxjs';
    1. rxjs/operators: All pipeable operators:
    import { map, filter, scan } from 'rxjs/operators';
    1. rxjs/webSocket: The web socket subject implementation
    import { webSocket } from 'rxjs/webSocket';
    1. rxjs/ajax: The Rx ajax implementation
    import { ajax } from 'rxjs/ajax';
    1. rxjs/testing: The testing utilities
    import { TestScheduler } from 'rxjs/testing';

提交回复
热议问题