Angular · Junior · Question 2 of 75
Which command creates a new Angular project?
- ✓Correct answer:
ng new my-app - 2
npm create angular my-app --template - 3
angular init my-app
Explanation
The Angular CLI (npm install -g @angular/cli) scaffolds the project with ng new, runs the dev server with ng serve, generates code with ng generate component name and builds with ng build.