Modules
NgModule groups declarations and imports. AppModule (or app.config standalone) boots the app. Feature module MarksModule holds marks pages so AppModule stays small.
declarations: components of this module. imports: other modules you need (CommonModule for *ngIf). exports: what other modules may use.
Standalone components skip NgModule. Still import CommonModule / RouterLink in the component imports array. Trap: declaring a component in two modules.
Exam tip
declarations vs imports vs exports. Standalone alternative.