DEV Community

Cover image for Getting Started with Angular

Posted on


Getting Started with Angular

What is Angular?

Angular is an open source web application framework lead by Google and by community developers.

It is based on TypeScript which is a strict syntactical superset of JavaScript which adds optional static typing to the language. While Typescript needs to be compiled it does offer a benefit in prototyping.

Getting Started

To use the Angular framework you should be familiar with:

  • JavaScript
  • HTML
  • CSS

Another important thing to understand is that Angular apps require libraries that are available as npm packages.

Step 1: Install the Angular CLI πŸ‘¨β€πŸ’»

To install the CLI using npm, open the terminal and enter

npm install -g @angular/cli

Step 2: Create a workspace and initial application πŸ‘·β€β™‚οΈ

To create a new workspace and initial starter app:

Run the CLI command ng new and provide the name my-application, as shown here:

ng new my-application

Angular will now get to work building the application. The client will create all folders and files necessary.

To run type:

ng serve

This will run the application through localhost:4200/

Follow and like for the next article on "Angular Building Blocks"

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.