Recall & Review
beginner
What command do you use to create a new Angular project?
You use
ng new project-name to create a new Angular project with the Angular CLI.Click to reveal answer
beginner
What does the Angular CLI do when you run
ng new?It creates a new folder with the project name, sets up the basic files and folders, installs dependencies, and configures Angular settings.
Click to reveal answer
beginner
Why is it important to have Node.js installed before creating an Angular project?
Because Angular CLI uses Node.js to run commands and manage packages needed for the project.
Click to reveal answer
intermediate
What is the purpose of the
--routing option when creating a new Angular project?It adds routing support to your project, creating files to help manage navigation between pages.
Click to reveal answer
beginner
How do you start the Angular development server after creating a project?
Run
ng serve inside the project folder to start the server and see your app in the browser.Click to reveal answer
Which command creates a new Angular project named 'my-app'?
✗ Incorrect
The correct command is
ng new my-app to create a new Angular project.What must be installed before using Angular CLI to create a project?
✗ Incorrect
Node.js is required because Angular CLI runs on Node and manages packages.
What does the
--routing flag do when creating a new Angular project?✗ Incorrect
The
--routing flag adds routing files to manage page navigation.After creating a new Angular project, which command starts the development server?
✗ Incorrect
Use
ng serve to start the Angular development server.What folder structure does Angular CLI create by default?
✗ Incorrect
Angular CLI creates
src for source code, e2e for tests, and node_modules for packages.Explain the steps to create a new Angular project from scratch.
Think about what tools you need and the commands you run.
You got /6 concepts.
Describe what happens behind the scenes when you run
ng new.Consider file creation and package installation.
You got /5 concepts.