Bird
0
0

You want to create a new Angular project with routing enabled and SCSS styling using Angular CLI. Which command should you run?

hard📝 state output Q15 of 15
Angular - Fundamentals
You want to create a new Angular project with routing enabled and SCSS styling using Angular CLI. Which command should you run?
Ang create my-app --routing --style=scss
Bng new my-app -routing -style=scss
Cng new my-app --routing --style=scss
Dng generate project my-app --routing --style=scss
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct command for new project with options

    The Angular CLI uses ng new with flags like --routing and --style=scss to enable routing and SCSS styling.
  2. Step 2: Verify option syntax

    Options must use double dashes and equal sign for style. So ng new my-app --routing --style=scss is correct.
  3. Final Answer:

    ng new my-app --routing --style=scss -> Option C
  4. Quick Check:

    New project with routing and SCSS = ng new with flags [OK]
Quick Trick: Use ng new with --routing and --style flags [OK]
Common Mistakes:
  • Using ng create instead of ng new
  • Using single dash for options
  • Wrong option syntax like -routing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes