loading...

re: The Last Guide For Angular Change Detection You'll Ever Need VIEW POST

FULL DISCUSSION
 

Well written. To justify the title, one crucial thing is missing. How to make the unit test run for component using the onPush strategy is something which needs a good understanding of the above article. So if someone is using OnPush strategy then to detect the changes foe unit testing, fixture.detectChanges() works(or is called) only the first time. So in case someone does call fixture.detectChanges() in beforeEach function then for in spec or test function it will not work if called again. Please elaborate and this to justify the title.

 

Thanks! Good point, will update the article with this information as soon as I have time!

code of conduct - report abuse