Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source data is an observable itself #10

Closed
matheo opened this issue Mar 3, 2018 · 2 comments
Closed

Source data is an observable itself #10

matheo opened this issue Mar 3, 2018 · 2 comments

Comments

@matheo
Copy link

matheo commented Mar 3, 2018

I have used Angular's Router data, params and queryParams, but I'm finding hard to imagine how to setup an observable as the source itself.

I'm needing to communicate some custom arguments through my components, so I'm thinking on a shared Observable able to emit values from one component, and be subscribed by the others. Is that remotely possible? thanks!

@scaljeri
Copy link
Owner

scaljeri commented Mar 3, 2018

Do you mean with @RouteTunnel? Because angular 5.2 changed something in how the Router works I rewrote this library which can be found here

I also changed @RouteTunnel to just @Tunnel, decoupled it from the router code. You can see it in action in the demo too!

@matheo
Copy link
Author

matheo commented Mar 3, 2018

Oh man, you saved my life!!
THANKS A LOT!!

Awesome stuff, @Tunnel is just what I was looking for!!
Keep it up :D

@matheo matheo closed this as completed Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants