New Zone and angular versions and two-way binding


old versions
Zone: "0.5.15", angular-2: "2.0.0-beta.13"

new versions
Zone: "0.6.8", angular-2: "2.0.0-beta.9"

this.api.getSomething().subscribe( (data) => { = data;} )

the above code doesn’t work on the new versions but the following does

new code
this.api.getSomething().subscribe( (data) => {{ = data; } } )

is this how it is supposed to be or there is something I should fix

ionic info
our system information: Cordova CLI: 5.4.1 Ionic Version: 2.0.0-beta.3 Ionic CLI Version: 2.0.0-beta.19 Ionic App Lib Version: 2.0.0-beta.9 OS: Distributor ID: Fedora Description: Fedora release 23 (Twenty Three) Node Version: v4.3.1


Can’t reproduce. Two-way bindings works like a clock.


have you tried it with the angular2/http and observables?


Yeap. Maybe it will help you:

  "dependencies": {
    "angular2": "2.0.0-beta.13",
    "es6-promise": "3.1.2",
    "es6-shim": "0.35.0",
    "ionic-angular": "2.0.0-beta.3",
    "ionic-native": "1.1.0",
    "ionicons": "3.0.0-alpha.3",
    "reflect-metadata": "0.1.2",
    "rxjs": "5.0.0-beta.2",
    "zone.js": "0.6.8"


ok thanks this looks like the same versions I have.
but here is the weird thing if I fire the (click) event on any element in the page the view gets rendered correctly. I know that the data is updated correctly