We are building an application using Cordova and Angular 2. I have the following code:
import { Component, OnInit, ChangeDetectorRef, NgZone } from \'@an
zone.js
patches XHR
object and other apis like setInterval
, addEventListener
, Promise so angular is notified when something happens and it triggers change detection itself.
It looks like JSONStore
is using different Promise implementation (jQuery?) which is not patched by zone.js
, so you have to trigger change detection manually or wrap you callbacks in zone.run
.