DEV Community

Cover image for Getting Started with Angular
Austin
Austin

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)