DEV Community

Cover image for what is angular
Rajdeep Singh
Rajdeep Singh

Posted on

what is angular

Angular a javascript library framework is written in typescript.
TypeScript open-source web application framework the Angular Team use in Angular.
Angular base on Component uses the angular Component to create a responsive web layout.

Angular feature:

Component
Directives
Modules
Forms
Services
Http
And many more

What is the angular version?
Angular version numbers have three parts:

angular version

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 a variety of 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:
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.

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

cd my-app
ng serve — open

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

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

Angular 8 home page in your browser.

Angular 8 home page

Top comments (0)