Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Is RxJS functional in Angular2/Ionic2 right now? Have an example?

$
0
0

@willb wrote:

I'd like to use RxJS in an Ionic 2 app

import {Rx} from "@reactivex/rxjs";

export clas Foo {
   constructor() {
      this.myUser = new Rx.BehaviorSubject(null);
   }
}

However I'm getting:

ERROR in ./~/@reactivex/rxjs/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./dist/cjs/Rx.KitchenSink in ~/dev/myproject/node_modules/@reactivex/rxjs

I also tried

   import * as Rx from "rx";

Which fails in a similar way. Anybody have this working?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>