# What is Angular?

### How Angular Differs from Traditional Websites

| Traditional Websites | Angular |
| --- | --- |
| Traditional Websites have a browser request an HTML page from a website from a server | Angular applications are designed to send the entire site upon request, so there are no further requests made to the server.<br>The has the advantage of being super fast and responsive |
| Traditional Websites would process a template (eg. JSP) and Data to create the HTML page | Angular is already going to have that pages deigned even if the Data appears later<br>The data is requested from the server using an architecture such as REST |

- To build a Angular website requires NodeJS, but running it requires no special software
- Note that version 1 of Angular was was called AngularJS and written in JS, whereas every version after 2 was written in typescript

### Setting Up a Project

- The CLI tool for angular is **ng** and it can be installed via node
    - npm install -g @angular/cli
- Create a project:
    - *ng new*
- Run a project from the root directory:
    - *npm start* OR *npm serve*
- Default port is 4200