Angular: getting started

Lesson 07 · 11 min

Routes

The URL picks the component. routerLink, not href, for internal screens.

Routes: the path 'users/:id' → a component. In the template routerLink="/users/1", not <a href>: otherwise it's a full reload. router-outlet is the hole where the current screen goes. You read id from the URL via ActivatedRoute.

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.