Bird
0
0

You want to create a new Angular project with routing and SCSS styling, but you also want to automatically install npm packages and initialize a Git repo. Which command achieves this?

hard📝 Application Q9 of 15
Angular - Fundamentals
You want to create a new Angular project with routing and SCSS styling, but you also want to automatically install npm packages and initialize a Git repo. Which command achieves this?
Ang new mysite --routing --style=scss
Bng new mysite --routing --style=scss --auto-install --auto-git
Cng new mysite --routing --style=scss --install --git-init
Dng new mysite --routing --style=scss --skip-install --skip-git
Step-by-Step Solution
Solution:
  1. Step 1: Understand default behavior of ng new

    By default, ng new installs npm packages and initializes a Git repo unless flags skip these steps.
  2. Step 2: Identify correct command without skip flags

    Only ng new mysite --routing --style=scss does not skip installation or Git initialization.
  3. Final Answer:

    ng new mysite --routing --style=scss -> Option A
  4. Quick Check:

    Default ng new installs packages and initializes Git [OK]
Quick Trick: Omit skip flags to install packages and init Git automatically [OK]
Common Mistakes:
  • Adding non-existent flags like --install
  • Using skip flags unintentionally

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes