ionic3——数据变更后无法立即更新到UI
2018-09-10 本文已影响0人
一只飞
import { Component, NgZone } from '@angular/core';
...
constructor(
private zone: NgZone
) {}
...
this.zone.run(() => {
this.display_number = '啊啊啊啊';
});
原地址:https://stackoverflow.com/questions/45690368/ionic-3-not-updating-view