-
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
ionSwipe in beta 11 and data binding #7630
Comments
Made a more minimal repo here with the latest nightly that shows that if you put the logic inside a |
Also, i can confirm that this seems to be limited too "gesture" event emitters like |
@jgw96 Thanks for the |
note to team: Seeing some really weird stuff with zone. The gif below shows everything. The template variable that im changing to make *ngIf hide the button with the ionSwipe event does not cause the template to update and does not appear to run in zone. But, when i do something that does run in zone, like a click event, then the template gets updated (as you can see by the button disappearing). |
@jgw96 the gif is not longer working. what is this issue about? sliding item? |
@manucorporat hmm the gif seems to be working for me still? This is about the (ionSwipe) event on sliding lists. It does not seem to run in zone properly. |
I had the same issue with ionSwipe. I believe the gesture event is not running in the NgZone, so it's not triggering any change detection. But as soon as you're emitting a event in the NgZone like a click, the change detection triggers and the view is updated. |
Short description of the problem:
Changes made to an item via
(ionSwipe)="someFunction(item)"
are not reflected as expected.What behavior are you expecting?
I expected the modifications made as a result of swiping to be reflected in the page.
Steps to reproduce:
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Which Ionic Version? 1.x or 2.x
v2 beta 11. This code worked as expected with beta 10.
Run
ionic info
from terminal/cmd prompt: (paste output below)The text was updated successfully, but these errors were encountered: