-
Notifications
You must be signed in to change notification settings - Fork 25k
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
4.0.0-rc.2 - es5 - CanDeactivate with EventEmitter #14926
Comments
did you try |
Can you be more specific ? |
You need to complete the stream. |
Ok... Did you try with my plnkr sample... It does not seem to change anything... except having errors ! |
I'm not familiar with angular es5 but ts version works fine http://plnkr.co/edit/FGGSd80pDDp5HTCGGC8y?p=preview so it's something wrong with your config and not an angular issue Plus your example doesn't even work with the most trivial |
Your sample is not the same as mine as i'm lazy loading the components. |
Ok still works :) |
Humm ok. |
@uparlange did this work in 2.x? |
@uparlange Your latest punker seems to work, i.e. I can navigate from Home to List and back... |
@tbosch the latest plunkr uses rc1.
|
it does work with ts version so it's something wrong with es5 distribution. I'm not very familiar with it |
Ok, I can reproduce now if I change the latest plunker manually to use v2 (i.e. change |
Nothing has changed in the router in-between rc1 and rc2 Night be related to #14603 / #14820 (the latter was part of rc2), @jasonaden could you please chime in ? Note: seems to work with rc1 and no more in rc2 and rc3. |
There was a change after rc.1 (move from babel back to rollup to generate UMDs) which made the workaround (adding to global Rx) stop working. We are looking at how to get a fix in for ReactiveX/rxjs#2415 or a usable workaround that should fix this issue for the next RC. |
Meanwhile and as a workaround we can change the eventemitter way by a Promise. canDeactivate:function(component) |
@jasonaden don't look like anybody cares in rxjs repo :) As a workaround I suggest to change impl and just check if object has |
@DzmitryShylovich Sounds good on the PR. |
…en Symbol.observable Fixes angular#14298 Fixes angular#14473 Fixes angular#14926
@jasonaden done #15171 |
…en Symbol.observable Fixes angular#14298 Fixes angular#14473 Fixes angular#14926
…en Symbol.observable Fixes angular#14298 Fixes angular#14473 Fixes angular#14926
…en Symbol.observable Fixes angular#14298 Fixes angular#14473 Fixes angular#14926
…en Symbol.observable (angular#15171) Fixes angular#14298 Fixes angular#14473 Fixes angular#14926
…en Symbol.observable (angular#15171) Fixes angular#14298 Fixes angular#14473 Fixes angular#14926
…en Symbol.observable (angular#15171) Fixes angular#14298 Fixes angular#14473 Fixes angular#14926
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a ... (check one with "x")
[ * ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see
Current behavior
CanDeactivate does not work with EventEmitter !
Expected behavior
CanDeactivate should work with true/false and with EventEmitter
Minimal reproduction of the problem with instructions
https://embed.plnkr.co/tPtY1a31CnFqhNbzVViU/
--> Unable to return to Home when List Displayed
What is the motivation / use case for changing the behavior?
CanDeactivate should work with true/false and with EventEmitter
Please tell us about your environment:
Windows 7 / VisualCode / NPM / Express
Angular version: 2.0.X
4.0.0-rc.2
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
All
Language: [all | TypeScript X.X | ES6/7 | ES5]
ES5
Node (for AoT issues):
node --version
=Not concerned
The text was updated successfully, but these errors were encountered: