NgModule vẫn là public API và vẫn gặp nhiều trong enterprise codebase.
Vai trò chính còn lại: gom declarations/providers trong legacy modules, expose library API cũ, cấu hình forRoot/forChild, hoặc bridge với third-party package chưa standalone. Với app mới, NgModule không còn là đơn vị bắt buộc; route-level lazy loading có thể import trực tiếp standalone component hoặc route array.
NgModule remains a public API and is still common in enterprise codebases.
Its remaining roles include grouping declarations/providers in legacy modules, exposing older library APIs, configuring forRoot/forChild, or bridging with third-party packages that are not standalone yet. In new apps, NgModule is no longer mandatory; route-level lazy loading can import standalone components or route arrays directly.