In this video, learn how to create a feature NgModule and wire it up to routing.
- [Instructor] As an Angular application grows in size, … it becomes advantageous to start grouping stuff … into related domain areas. … Let's take a look at how we can add … a new feature NgModule to the application … and set up with its own component and routing. … So the app drops the user into a list of media items … and the user can click the add media icon … Over in the code, let's create a new folder … This will be where we put all the files related … We need to update those to work with the new location. … Let's open up the media-form.component.ts file … and we'll update the import statements … for the media items service and lookup list token … to change the path from a single dot and slash … and set up the routing for it. … In the new item folder, … we'll create a new file named new-item.module.ts. … So let's add the import statement … Then we can use the NgModule decorator … One thing to note on the BrowserModule, … it is designed to be used at the root NgModule level. … Angular has another NgModule named CommonModule …
- 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.