Reynald continues to walks us through code implemented for routing by covering the shared.module file in addition to refactoring in app.component.ts. The last set of change covered include adding links to the detail page. Once done, we take a final look at the end product, the movie database's functionality, to wrap everything up.
- [Instructor] As we're just reviewing…the code that was set up for routing, the last…piece of code that we reviewed…was the movie.module.ts file.…After having completed that,…the next thing that I did is…create a shared.module.ts file,…which, essentially, just covers the review component…and isolates it.…We know that it was a separate component…that we wanted to have shared amongst…several other modules,…accessible to any other module, essentially.…So, it just makes sense to have it…under a shared folder, in a shared module,…and that's what this is.…
Afterwards, I went into the app.component.ts file,…and that is right in the root of…the app folder, app.component.ts,…and I essentially did a little bit of refactoring…in order to start referencing our route,…so if you look on line…11 through 14, we see that,…in our anchors, I now have…router links that's assigned to welcome,…and also for movies.…
I also removed import statements…that we no longer needed…because of the way that we set up the routing,…so that movie list,…
- Creating components
- Bootstrapping components
- Working with templates
- Using directives and interpolation
- Binding and transforming data
- Creating advanced and nested components
- Creating services
- Obtaining data with HTTP calls
- Configuring routes
Skill Level Intermediate
1. Course Overview
3. Directives, Interpolation, and Templates
5. Advanced Components
7. Obtaining Data with HTTP
- 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.