Angular - Change DetectionIf a parent Angular component uses the default change detection strategy, what occurs when a child component's @Input property changes?AThe child component requires manual change detection to update its view.BThe child component's view updates automatically during the next change detection cycle.CThe parent component must emit an event to update the child view.DThe child component's view will not update unless OnPush strategy is used.Check Answer
Step-by-Step SolutionSolution:Step 1: Understand default strategy propagationDefault strategy runs change detection for all components including children.Step 2: Effect on child @Input changesWhen a child's input changes, Angular detects and updates its view automatically.Final Answer:The child component's view updates automatically during the next change detection cycle. -> Option BQuick Check:Default strategy auto-updates child views on input change [OK]Quick Trick: Child views auto-update with default strategy [OK]Common Mistakes:MISTAKESThinking manual detection is neededBelieving parent must emit eventsConfusing with OnPush requirements
Master "Change Detection" in Angular9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallPerf
More Angular Quizzes HTTP Client - Loading states and error patterns - Quiz 6medium Reactive Forms - Custom validators - Quiz 14medium Routing - RouterModule configuration - Quiz 5medium RxJS Operators - debounceTime for input throttling - Quiz 10hard RxJS and Observables Fundamentals - Why observables matter in Angular - Quiz 13medium Services and Dependency Injection - Why services are needed - Quiz 14medium Services and Dependency Injection - Service scope (root, module, component) - Quiz 12easy Template-Driven Forms - Form validation with template attributes - Quiz 5medium Template-Driven Forms - ngModel for form binding - Quiz 10hard Template-Driven Forms - Form validation with template attributes - Quiz 14medium