-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Events Unsubscribe with second param. #11716
Comments
Hello, thanks for using Ionic! Could you post a plunker we could use to reproduce this issue? |
Hi! Here you have an example of this kind of service:
Hope it helps. Regards, |
Hello, all! After further review, this seems like more of a support question. Because of this, I will urge that you ask this question on our forum or on our slack channel. Thanks for using Ionic! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Ionic version: (check one with "x")
[ ] 1.x
[X] 2.x
[X] 3.x
I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
I using Events. One first page in functionionViewWillEnter I subscribe and in ionViewWillLeave I unsubscribe.
In moment when I unsubscript like this [1]Works.
But when I put like this [2]. Maybe can be a bug. I don't know.
[1] this.events.unsubscribe('pedido-acoes:atraso');
[2] this.events.unsubscribe('pedido-acoes:atraso', () => {});
Expected behavior:
I was expected this [2] unsubscribe event.
Steps to reproduce:
Related code:
this.events.unsubscribe('pedido-acoes:atraso');
this.events.unsubscribe('pedido-acoes:atraso', () => {});
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):Your system information:
Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.10.3
Xcode version: Not installed
The text was updated successfully, but these errors were encountered: