Angular - Change DetectionWhich of these best describes how Angular uses Zone.js internally?AIt manages CSS styles dynamicallyBIt replaces JavaScript event loop with a custom oneCIt patches async APIs to know when tasks start and finishDIt compiles templates into optimized JavaScriptCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify Zone.js mechanismZone.js patches async APIs like setTimeout and promises to track tasks.Step 2: Understand Angular's useAngular relies on this patching to detect when to run change detection.Final Answer:It patches async APIs to know when tasks start and finish -> Option CQuick Check:Angular uses Zone.js patching = It patches async APIs to know when tasks start and finish [OK]Quick Trick: Zone.js patches async APIs to track tasks [OK]Common Mistakes:MISTAKESThinking Zone.js replaces the event loopConfusing Zone.js with template compilationAssuming Zone.js manages CSS
Master "Change Detection" in Angular9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallPerf
More Angular Quizzes Reactive Forms - FormBuilder service - Quiz 10hard Reactive Forms - FormGroup for grouping controls - Quiz 10hard RxJS Operators - Why operators transform data streams - Quiz 8hard RxJS Operators - catchError for error handling - Quiz 8hard RxJS Operators - tap operator for side effects - Quiz 3easy RxJS Operators - map operator for transformation - Quiz 6medium Services and Dependency Injection - @Injectable decorator and providedIn - Quiz 9hard Services and Dependency Injection - Why services are needed - Quiz 9hard Template-Driven Forms - Form validation with template attributes - Quiz 10hard Template-Driven Forms - Why forms matter in Angular - Quiz 2easy