Inspecting the App Folder
Explore the structure of an Angular app folder to effectively modularize Bootstrap layouts. Learn how app.module.ts manages imports and declarations, how app.component.ts and its HTML integrate components, and how navbar components function. This lesson helps you understand the organization of Angular files for building efficient modular web layouts.
Inspecting the app/ folder
The app.module.ts file
Now, let’s see what’s going on inside the app.module.ts file.
Explanation
Lines 1–3: We import some basic functionality that does Angular work. We don't need to focus on that now.
Lines 4–5: We import
AppComponentandNavbarComponent. These class names were exported from theapp.component.tsandnavbar/navbar.component.tsfiles, respectively.Lines 6–10: We specify the module’s metadata in its
@NgModuledecorator. It is similar to what we discussed earlier when we saw how the@Componentdecorator ...