Bird
0
0

If you run ng generate component dashboard --inline-style --inline-template, what will be true about the generated component files?

medium📝 Predict Output Q5 of 15
Angular - Components
If you run ng generate component dashboard --inline-style --inline-template, what will be true about the generated component files?
AThe component will have no separate HTML or CSS files; template and styles are inside the TypeScript file
BThe component will have separate HTML and CSS files
COnly the CSS will be inline; HTML will be separate
DOnly the HTML will be inline; CSS will be separate
Step-by-Step Solution
Solution:
  1. Step 1: Understand inline options

    --inline-style and --inline-template put styles and template inside the component TypeScript file.
  2. Step 2: Analyze file creation

    No separate .html or .css files are created; all content is embedded inline.
  3. Final Answer:

    Component has no separate HTML or CSS files; template and styles are inside the TypeScript file -> Option A
  4. Quick Check:

    Inline template and style means no separate files [OK]
Quick Trick: Use --inline-style and --inline-template for single file component [OK]
Common Mistakes:
  • Expecting separate HTML or CSS files
  • Confusing inline options with skipping files
  • Assuming only one of template or style is inline

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes