Angular is a front-end framework which is used to create web applications. It uses typescript by default for creating logics and methods for a class but the browser doesn’t know typescript. Here webpack comes in picture, webpack is used to compile these typescript files to JavaScript. In addition, there are so many configuration files you will need to run an angular project on your computer.
Angular CLI is a tool that does all these things for you in some simple commands. Angular CLI uses webpack behind to do all this process.
Note: Please make sure you have installed node and npm in your system. You can check your node version and npm version by using the following command:
node --version
npm --version
Steps to Create your first application using angular CLI:
Step-1: Install angular cli
npm install - g @angular/cli
Step-2: Create new project by this command
Choose yes for routing option and, CSS or SCSS.
ng new test-app
Step-3: Go to your project directory
cd test-app
Step-4: Run server and see your application in action
ng serve -o
#angular #angular8