You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
443 B
32 lines
443 B
# Routing in Angular
|
|
|
|
## Lesson Objectives
|
|
|
|
1. Create a new angular app
|
|
1. Clean up app HTML
|
|
|
|
## Create a new angular app
|
|
|
|
First create a new app using
|
|
|
|
```
|
|
ng new router
|
|
```
|
|
|
|
Now, `cd` into the new directory and start serving the app
|
|
|
|
```
|
|
cd router
|
|
ng serve --open
|
|
```
|
|
|
|
You should now see the welcome screen
|
|
|
|
## Clean up app HTML
|
|
|
|
Go into `src/app/app.component.html` and change the HTML to:
|
|
|
|
```html
|
|
<h1>Welcome To My Personal Site</h1>
|
|
```
|