I have a complex component with many @Input() and async process. I want to optimize the component, thus intend to analyze Angular4 change detection cycle upon my component.
May I know how to identify if the Angular4 change detection system is being triggered, and the DOM is being re-rendered?
Probably, using console.log(...)?
Typically, I hope for something like (in browser console):
Change-detection running... no changes... 1
Change-detection running... no changes... 2
Change-detection running... no changes... 3
Change-detection running... no changes... 4
Change-detection running... changed
No DOM rendering
Change-detection running... no changes... 5
Change-detection running... no changes... 6
Change-detection running... changed
DOM re-rendered
Change-detection running... no changes... 7
Change-detection running... no changes... 8
How do I achieve this? Or how do you guy optimize the Angular4 performance? Any other approaches?
