Khi nào chạy change detection ? Nên đặt OnPush ở đâu ?
Khi nào App chạy change detection ?
DOM events (mouse, key, …)
Requests api
Timers (setTimers(), setInterval())
gọi method detectChanges() bằng đối tượng ChangeDetectorRef
Gọi phương thức ApplicationRef.tick()
@input thay đổi
khi có 1 sự kiện DOM, @...
angular8.hashnode.dev2 min read