Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions adev/src/content/guide/routing/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,6 @@ Routing helps you change what the user sees in a single-page app.

Angular Router (`@angular/router`) is the official library for managing navigation in Angular applications and a core part of the framework. It is included by default in all projects created by Angular CLI.

## Installation

Angular Router is included by default in all Angular projects setup with the Angular CLI `ng new` command.

### Prerequisite

- Angular CLI

### Add to an existing project

If your project does not include Angular Router, you can install it manually with the following command:

```bash
ng add @angular/router
```

The Angular CLI will then install all the necessary dependencies.

## Why is routing necessary in a SPA?

When you navigate to a URL in your web browser, the browser normally makes a network request to a web server and displays the returned HTML page. When you navigate to a different URL, such as clicking a link, the browser makes another network request and replaces the entire page with a new one.
Expand Down