ChangeDetectorRef.markForCheck()和之间有什么区别ChangeDetectorRef.detectChanges()?
ChangeDetectorRef.markForCheck()
ChangeDetectorRef.detectChanges()
我只在SO上找到了关于NgZone.run()这两个函数之间的差异的信息,但不是这两个函数之间的区别.
NgZone.run()
对于仅提及文档的答案,请说明一些实际场景,以选择其中一个.
angular2-changedetection angular
angular ×1
angular2-changedetection ×1