python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Angular 12: how to detect changes of property in service
My existing project has some dependencies as below. I have one shared service class which holds one shared object "myObject". Lot of components are accessing this shared "SharedService&...

Anshu S
Votes: 0
Answers: 1
Infinite loop when calling detectChanges() inside ngAfterViewChecked?
I recently reviewed some code where detectChanges() is called from ngAfterViewChecked. How does that not cause an infinite loop? Shouldn't it trigger another change detection cycle, which will call ng...
Cory
Votes: 0
Answers: 1
Why is it considered a code smell to call detectChanges()?
I recently reviewed some code where detectChanges is called. I've read all over the place that manually running a change detection cycle is a code smell and a sign that you are probably doing somethin...
Cory
Votes: 0
Answers: 0
Change Detector Tree
We have an application where we need to dettach from the ChangeDetector and everything works so far.
This is our current component structure:
AComponent (Normal Component, Attached)
BComponent (Det...
Levi Hechenberger Di Valentino
Votes: 0
Answers: 0