Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

BehaviorSubject with rx.angular #148

Open
GuillaumeUnice opened this issue Jul 25, 2016 · 6 comments
Open

BehaviorSubject with rx.angular #148

GuillaumeUnice opened this issue Jul 25, 2016 · 6 comments

Comments

@GuillaumeUnice
Copy link

Hi everyone all is in the title,

I just want to know if with this extension I can have the same behaviour that a BehaviorSubject with this angular module?
If, not I would like to know if it's possible to use directly the rxjs library or we have to use this official module?

I have an AngularJS 1.5 with TypeScript and webpack

Thanks for all

@ygrene-austin
Copy link

This module uses the Rxjs library and yes BehaviorSubject will behave (lol) how it should.

@GuillaumeUnice
Copy link
Author

Indeed, that works but I believed that no works because I don't have any type autocompletion with my TypeScript I don't have any d.ts that works?

I close and open a new issue for this? Or today there is a d.ts available?

Thanks for all

@ygrene-austin
Copy link

https://github.com/Reactive-Extensions/rx.angular.js/tree/master/ts
On Wed, Aug 10, 2016 at 11:57 PM GuillaumeUnice [email protected]
wrote:

Indeed, that works but I believed that no works because I don't have any
type autocompletion with my TypeScript I don't have any d.ts that works?

I close and open a new issue for this? Or today there is a d.ts available?

Thanks for all


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#148 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATeuMDXn6fWAZb6_OGcJ-5hiYUlfcUltks5qesfpgaJpZM4JUi1v
.

Austin Adams
Sr. Web Application Developer
www.ygreneworks.com
815 5th Street | Santa Rosa, CA 95404

@GuillaumeUnice
Copy link
Author

Ok i shared my code to show there is no autocompletion when I create a Subject.

export class LoginService {

  public source = new this.rx.Subject();

  /** @ngInject */
  constructor(
    private rx: rx.angular.IRxScope)
  { 

  }


}

Here Subject is underline and this is logic because IScope interface no have Subject function. I think I don't use rx.angular in a correct way, but here the Subject is correctly create :s

So how can I create Subject with this d.ts definition correctly?

Thanks,
Best regards

@stephengardner
Copy link

Did this question actually get resolved?
Should there not be a ´rx.BehaviorSubject´?

Right now I'm using the imported version from the actual rxjs library because I don't know how to properly create a Behavior Subject using this one.

I believe that was the original question.

Is there an answer?

@stephengardner
Copy link

Hey @ygrene-austin do you have an example of how to create a BehaviorSubject with this module?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants