question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ionSwipe in beta 11 and data binding

See original GitHub issue

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:

  1. See this repo
  2. 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:closed
  • Created 7 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
manucorporatcommented, Sep 17, 2016

@m5rk @fknop fixed!

0reactions
fknopcommented, Aug 23, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found