In this article, we learn how to create new project in Angular. I will show how to do it, and just follow the steps clearly.
For more updates please do Subscribe via Email:
Angular is a TypeScript-based free and open-source web application framework led by the Angular Team at Google and by a community of individuals and corporations. Angular is a complete rewrite from the same team that built AngularJS.
- VS Code or any IDE that can run and build type-script and html code.
- In my case I used VS Code, because it easy for my end.
Installing Angular CLI
The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications directly from a command shell.
To install the Angular CLI just run this code in your terminal or command shell.
npm install -g @angular/cli
the “-g” flag is a shorthand for the global configuration which sets the package install location to the folder.
Create new project
To create the project, just run this code in terminal.
ng new your-project-name
for the purpose of this article, the project name create was “AngularProject” and select yes in routing and CSS for the stylesheet.
as we can see image above my project is successfully created. And here is the project file.
to run the application ang test to your browser, just run this code.
after you run this code. there is a URL given by the CLI. “http://localhost:4200” access this in your browser.
Here is it, we have new Angular project running.
In this article we learn how to address if you encounter this issue in your development journey. I will show you how, Just follow the […]
In this article, we learn how to setting up homepage route URL in angular routings. I will show you how, just follow the steps clearly. […]