Angular - Performance OptimizationWhich Angular CLI command generates a JSON file useful for bundle size analysis?Ang build --stats-jsonBng serve --stats-jsonCng test --stats-jsonDng lint --stats-jsonCheck Answer
Step-by-Step SolutionSolution:Step 1: Recall Angular CLI commands for buildingThe command to build the app and generate stats is ng build --stats-json.Step 2: Identify correct optionng build --stats-json matches the correct command to create the JSON file for bundle analysis.Final Answer:ng build --stats-json -> Option AQuick Check:Build with stats JSON = ng build --stats-json [OK]Quick Trick: Build command with --stats-json creates analysis file [OK]Common Mistakes:Using ng serve instead of ng buildConfusing test or lint commands with buildForgetting to add --stats-json flag
Master "Performance Optimization" in Angular9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallPerf
More Angular Quizzes Advanced Patterns - Resolver for pre-fetching data - Quiz 5medium Advanced Patterns - Resolver for pre-fetching data - Quiz 4medium Advanced Patterns - Container and presentational components - Quiz 11easy Angular Signals - Signal vs observable comparison - Quiz 10hard Internationalization and Accessibility - Marking text for translation - Quiz 14medium Performance Optimization - Preloading strategies - Quiz 12easy Performance Optimization - Preloading strategies - Quiz 11easy Standalone Components - Standalone component declaration - Quiz 10hard Standalone Components - Standalone component declaration - Quiz 3easy Testing - TestBed configuration - Quiz 1easy