In this video, learn how to set up the base href DOM element and configure some initial routes to components.
you have a base href in the dom. … This essentially allows for URLs to be used … The client code can then work against those state changes … and make decisions of how to route. … a base href element tag as a child of the head tag … set with the href attribute to a forward slash. … in the app folder. … and set that equal to an array. … to set the type of this appRoutes object? … and transpile time checking of the objects … we put into this array. … Angular exports a type named Routes, … that is, an array of route objects. … Then, we can specify the type of the app routes variable … Okay, the application has a list view … as well as a default route. … A route object is expected to have a path property, … so we add a new object literal to the array … Note that there's no leading slash here. … The route object supports a component property … that expects a type, so we need to import … And then, we can add a component property … onto the object and set that to MediaItemFormComponent. … Let's add a route for the media item list by medium type. …
- 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.