Skip to main content

Create an Angular 5 project using Angular CLI

Prerequisites:

To install the Node.js and Angular CLI please click in the below mentioned link.

http://angularworldz.blogspot.in/2018/01/advantages-of-using-angular-cli.html

Once Node.js and Angular CLI Installed  please follow the below mentioned steps to create an angular 5 project.

Generating and Serving Angular 5 Project:

1. Open Node.js command prompt as an administrator.
2. Install Angular CLI latest version ( if not installed ) using the below mentioned command.
    npm install -g @angular/cli@latest
3. Make directory to create a Angular Project
    mkdir Angular5Practice






4. Change the directory path to Angular5Practice







5. To see the list of available commands in the Angular CLI use the below mentioned command.
     ng help
6. To generate and serve an angular project using the below mentioned command.
     a) ng new Angular5Demo     











Change the directory to Angular5Demo using the below mentioned command.
     b) cd Angular5Demo





Serve and open the project using the below mentioned command.
     c) ng serve --o

Comments

Popular posts from this blog

Advantages of using Angular CLI

Angular CLI is an command line interface tool for Angular. Installation: 1. Prerequisite to install and run Angular CLI Commands    Need to install node.js using the below mentioned link  https://nodejs.org/en/download/ 2. To install Angular CLI a) Start -- Search Node and select Node.js command prompt b) Right click on the Node.js command prompt and run it as an administrator c) Then Node.js command prompt will like this. d)Install Angular CLI using the below mentioned command. npm install -g @angular/cli@latest e) Use the below mentioned command to check currently installed Angular CLI version   ng -v