ionSwipe in beta 11 and data binding
See original GitHub issueShort 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:
- See this repo
- Clicking the item toggles it. Swiping it does not.
insert any relevant code between the above and below backticks
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)
Your system information:
Cordova CLI: 6.2.0
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X Yosemite
Node Version: v6.2.2
Xcode version: Xcode 7.2.1 Build version 7C1002
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Two-Way Data Binding Issue? (Ionic 2.0.0-beta.11)
The problem I'm having is that when I delete my pre-filled first_name input, myProfile.controls.first_name.value is still the original value ...
Read more >ionic/docs/core.json - UNPKG
165, "text": "data Any data to emit in the dismiss events." ... v-on:input=\"entry.checked = $event.target.value\" v-bind:value=\"entry.
Read more >Mobile App Development with Ionic, Revised Edition
However, unlike Angular 1, this data binding is one way. By doing so, the number of event listeners that were generated have been...
Read more >Learning Ionic - webshac.com - /
how to keep your data in sync with all devices. Prior to joining Ionic as a core team member and a developer advocate,...
Read more >Ionic Forum - Latest topics - RSSing.com
Overall, it wasn't horrible as I was on Ionic 4 beta and Angular 6. ... and take lot of time to upload and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@m5rk @fknop fixed!
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.