Angular - ComponentsWhy does Angular CLI convert component names to kebab-case when generating files and folders?ATo reduce file name length for faster compilationBBecause kebab-case is required by TypeScript syntaxCTo make component names case-insensitive in Angular templatesDTo follow web standards and improve readability in URLs and file systemsCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand naming conventionsKebab-case is a common web standard for file and folder names, improving readability and consistency.Step 2: Analyze other optionsKebab-case is not required by TypeScript, does not affect template case sensitivity, and does not impact compilation speed.Final Answer:To follow web standards and improve readability in URLs and file systems -> Option DQuick Check:Kebab-case used for web standard naming [OK]Quick Trick: Kebab-case improves readability and follows web standards [OK]Common Mistakes:Thinking kebab-case is TypeScript requirementAssuming it affects Angular template case sensitivityBelieving it speeds up compilation
Master "Components" in Angular9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallPerf
More Angular Quizzes Angular Fundamentals - Running and serving an Angular app - Quiz 2easy Angular Modules - Module lazy loading preview - Quiz 1easy Component Interaction - Template reference for direct access - Quiz 13medium Component Interaction - Why component communication matters - Quiz 4medium Components - Component lifecycle overview - Quiz 10hard Directives - Why directives are needed - Quiz 10hard Lifecycle Hooks - ngDoCheck for custom change detection - Quiz 2easy Pipes - Creating custom pipes - Quiz 8hard Pipes - Pipe performance considerations - Quiz 5medium TypeScript in Angular - Decorators as TypeScript feature - Quiz 15hard