Getting started with Angular
Introduction
Angular is a TypeScript-based free and open-source web application framework. It is maintained by Google and open-source community individuals.
Getting started
- Download and install Node.Js windows installer
- You can check your installed node.js version using following command
node -vor
node --version
- You can check your installed node.js version using following command
- Install Angular CLI
- To install Angular CLI, open a windows terminal and run the following command
npm install -g @angular/cli
- To install Angular CLI, open a windows terminal and run the following command
- Create an application
- Run the following CLI command to create an application name my-project
ng new my-client-app- The
ng newcommand prompts you for several information. For simplicity just keep default or press enter.
- Run application
- Navigate to the workspace folder as follows
cd my-client-app - Now run the following command to run application
ng serve -openng serve -oYour application automatically run to http://localhost:4200/
- Navigate to the workspace folder as follows
For more information visit angular official site: https://angular.io/
Comments