In this video, learn how to lazy load a feature module via routing.
- [Instructor] Feature models provide a great way … to the client based on application routing, … and then deliver more code later … in the application. … This is a great way to make Angular apps more performant, … both from a usability standpoint … and from a payload standpoint. … Let's take a look at how we can utilize lazy loading … in the imports list for the app module. … when accessing the app in the browser. … With lazy loading, we don't want Angular … and then deliver it when a route is requested for it. … So let's start by removing the new item module … from this imports array … and remove the import statement for it … up in the list of imports. … Then we can head over to the app.routing.ts file. … And in here we are going to want to register a new route … of a route entry object property named load children. … So let's add a new object literal … For the value of this load children property, … that makes use of the dynamic import statement … and then for the function body … we can use the import function called syntax …
- 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.