What isAangular.js

Rajdeep Singh
2 min readOct 14, 2019

--

Angular.js is a javascript library framework written in typescript.

TypeScript open-source web application framework. The Angular Team uses the typescript language.

Angular base on Component uses the angular Component to create a responsive web layout.

Angular feature:

  1. Component
  2. Directives
  3. Modules
  4. Forms
  5. Services
  6. Http
  7. And many more

What is the angular version?

Angular version numbers have three parts:

1. major

2. minor

3. patch

Example: version 7.2.11

version:

October November 2019 ^8.0.0

May 2020 ^9.0.0

More version details

How to Install angular?

First setup environment for Angular development using the Angular CLI tool. Use the CLI, create an initial workspace and starter app, and running that app locally to verify your setup.

Step 1:Install the Node.JS

First, install node.js on your machine. Make sure Node.js version 10.9.0 or latest.

  • To check your version, run node -v in a terminal/console window.
  • To get Node.js, go to nodejs.org download it.

Step 2: Install the Angular CLI

You use the Angular CLI tool to create a project, generate application and library code, and perform various ongoing development tasks such as testing, bundling, and deployment.

Make sure to install the Angular CLI globally.

To install the CLI using npm command:

npm install -g @angular/cli

Step 3: Create the first App:

To create a new workspace or app:

  1. run the CLI command in terminal ng new and provide the name my-app, as shown here:
ng new my-app

Step 4: Run the application.

The Angular CLI includes a server so that you can easily run an app on the browser.

  1. Go to the workspace folder (my-app).
  2. Launch the server by using the CLI command ng serve, with the — open option.
cd my-appng serve --open

The — open (or -o) option automatically opens your app in the browser (default ) to http://localhost:4200/.

Note: First, go to the workspace folder, then use the ng serve command.

Angular 8 home page in your browser.

--

--

Rajdeep Singh
Rajdeep Singh

Written by Rajdeep Singh

Follow me if you learn more about JavaScript | TypeScript | React.js | Next.js | Linux | NixOS | Frontend Developer | https://linktr.ee/officialrajdeepsingh

No responses yet