I have a simple angular2 component that contains only an ag-grid component with some data bind to it.
My component implement the DoCheck and the ngDoCheck method is implement in the component.
export class AppComponent implements DoCheck
{
ngDoCheck() {
console.log('do check..');
}
}
I have realized that the ngDoCheck function is always running endlessly.
Any explanation about this issue.
Is a really dirty cycle, in fact even angular itself is suggesting to use more proper way to implement custom checks.
https://angular.io/docs/ts/latest/api/core/index/DoCheck-class.html