4. Steps to Create an Angular Project



  • Steps to Create an Angular project 
    1. Install node.js from https://nodejs.org/en/
    2. Install Angular CLI use "npm install -g @angular/cli" command 
    3. Create a new angular project use "ng new project_name " command 
    4. Serve the project: Navigate using " cd my-project" command and Serve using   " ng serve" command 
    5. View your application on localhost://4200
    6. Additional Dependencies: use "npm install <package-name>" command to install new dependencies.
  • TypeScript will be installed automatically when you create a new angular project using Angular CLI. 
  • tsc --init is used to create tsconfig.json file but it will automatically get generated when you create a new angular project using Angular CLI.

Comments