摘要: angular2 http异步请求到数据后,视图中并未更新。可使用ChangeDetectorRef 当changeDetection=ChageDetectionStrategy.OnPush时,需要手动调ChangeDetectorRef.markForCheck()方法,才能将变化更新到视图。 阅读全文
posted @ 2020-02-18 21:17 myLittleGarden 阅读(152) 评论(0) 推荐(0)