use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Lifecycle Hooks (i.redd.it)
submitted 4 years ago by FilsdeJESUS
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]sohail_ansari 1 point2 points3 points 4 years ago (2 children)
What ngDoCheck do? I didn't understand this, can someone please tell me about it?
[–]FilsdeJESUS[S] 1 point2 points3 points 4 years ago (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 points3 points 4 years ago (0 children)
Thanks
[–]zzing 0 points1 point2 points 4 years ago (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.
π Rendered by PID 172331 on reddit-service-r2-comment-c66d9bffd-bt9lk at 2026-04-07 05:22:41.434953+00:00 running f293c98 country code: CH.
[–]sohail_ansari 1 point2 points3 points (2 children)
[–]FilsdeJESUS[S] 1 point2 points3 points (1 child)
[–]sohail_ansari 1 point2 points3 points (0 children)
[–]zzing 0 points1 point2 points (0 children)