In this tutorial, we will learn about.
- how to install the angular cli.
- how to create a new project.
Angular cli is a command line interface which helps us to generate the new projects.
Let’s install the Angular cli.
- Nodejs version 8 or greater.
Open your terminal and run below command.
npm install -g @angular/cli
Once it's installed run ng -v if version number is shown you are successfully installed
Create a new project using Cli
ng new myfirst-app
Once you run the above command angular cli generates the new project in the myfirst-app folder.
It’s time to run the development server.
ng serve //it helps to run the development server.
Now open localhost:4000 in your favorite browser.
You can see an angular logo with some links.