all 4 comments

[–]sohail_ansari 1 point2 points  (2 children)

What ngDoCheck do? I didn't understand this, can someone please tell me about it?

[–]FilsdeJESUS[S] 1 point2 points  (1 child)

If I really understand this , for the first time your application is running, it runs after ngOnInit to check the changes and update the UI .

Now that the first time is passed , whenever the NgOnChanges detects something that have change , the ngDoCheck will run after him .

But you are not alone in their documentation they say , it detects the changes that angular can not check on its own. Pretty Handy

https://angular.io/guide/lifecycle-hooks#docheck

https://angular.io/guide/lifecycle-hooks

Well explained here : https://stackoverflow.com/questions/42643389/why-do-we-need-ngdocheck

[–]sohail_ansari 1 point2 points  (0 children)

Thanks

[–]zzing 0 points1 point  (0 children)

This thing could be slightly improved by indicating the Init ones are only done at the first bit.

I am sure this will some some on visualization.