In this video, learn how to use the RouterLink directive to wire up routing logic to DOM elements.
- [Instructor] Angular has a directive named routerLink … that handles changing behavior of html links … to work with the router engine. … You can use routerLink to create navigation in apps … that use routing. … Let's wire up some navigation in the app. … In the app.component.html file, … the first A tag in the nav … is the link to view all media items. … The routerLink directive has a selector value of routerLink, … so we can add a routerLink attribute to this element. … Then, we set this equal to a string value, … which will be the url segment we want to route to. … To view all items, we can give this a forward slash … to indicate that we want to go to the base url. … Remember that we have a default route … to handle that very scenario. … The second A tag is for the list … filtered by the medium of movies. … For this one, we add the routerLink attribute, … and set it equal to /movies. … The third A tag is for the medium of series. … So we do the same, except we put the terms series …
- What is Angular?
- Working with components
- Binding events and properties
- Getting data to components
- Using directives and pipes
- Creating Angular forms
- Validating form data
- How Angular does dependency injection
- Making HTTP calls
- Styling components
Skill Level Intermediate
Angular: Building an Interfacewith Ray Villalobos2h 20m Intermediate
1. Architecture Overview
3. Directives and Pipes
5. Dependency Injection and Services
8. Styling Components
Next steps1m 20s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.