Thursday, May 10, 2018

Angular CLI

CLI stands for Command Line Interface. CLI is command line tool forcreating Angular applications faster and with consistency.
Angular CLI create the boiler plate code for angular features like components, directives, pipes, services etc. and also  create boiler plate code for TypeScript features like classes, interfaces, enums etc.
CLI greatly help us improve our productivity as it can get an angular app up and
running in no time. It can also generate components, directives, pipes, services etc with good speed.

Installing Angular CLI:

To install Angular CLI you should have installed Node 6.9.0 or higher Version and NPM 3 or higher Version

How You check versions of Node that your machine have the -Run the Following command in command window.

node -v

npm -v

You can download Node latest version from here

https://nodejs.org/en/download/

After Installing Node and NPM

Run following command to install CLI

npm install -g @angular/cli

Or

npm i -g @angular/cli

Angular CLI Create new project:
To create a new Angular Project, open Command Prompt and execute the following command.

ng new MyFirstApp

ng is the Angular CLI
new for creating a new application
MyFirstApp is the name of your angular application

SUMMARY
 Install Angular Cli
 Create Project with command


No comments:

Post a Comment

How To Add DateRange Picker In Angular Application

  Introduction   In this article, we will learn how to add date range picker In Angular application.   Prerequisites Basic Knowledge of Angu...