Saturday, November 23, 2019

Three Steps To Install Angular

Step 1 - Install NodeJS
  1. Follow the link - https://nodejs.org/en/download/
  2. Download the node.js installer for Windows and install it.
  3. Type the “npm -v” command to check the Node.js installation and version.
Angular

Step 2 - Install TypeScript
  1. Open the link https://www.npmjs.com/package/typescript
  2. Copy the above command “npm install -g typescript” and run it on command prompt.
Step 3 - Install Angular CLI
Open the link https://cli.angular.io/ and follow the instructions to install Angular CLI and to create your first  Angular app.
  1. Type the command “npm install -g @angular/cli” on the command prompt and press enter to install Angular cli.
  2. Type “ng new hello-world” and hit enter to create the Hello World app.
    Once you see the message “Project ‘hello-world’”  it means the app is created on the disk.
  3. Finally, the "Hello World" Angular app is created; now type “ng serve -o”.
Now, open the browser and type http://localhost:4200  in the address bar and hit enter to run the Hello World Angular app in the browser.

Angular