Modern Angular Material (v17+) no longer requires `importProvidersFrom` or NgModule imports for most components. Since version 17.0–17.1, Dialog, Snackbar, Tooltip, and Datepicker dependencies became tree-shakable standalone providers. Instead of wrapping modules with `importProvidersFrom`, you can use dedicated provider functions like `provideNativeDateAdapter`. This simplifies `ApplicationConfig`, reduces bundle size, and makes Storybook stories and component tests easier to configure. A reference table shows the exact Angular Material version when each component switched to standalone providers.
Table of contents
Standalone Angular application Copy link Link copied!Classic Angular application Copy link Link copied!Standalone Angular Material providers Copy link Link copied!Benefits Copy link Link copied!Storybook component stories Copy link Link copied!Component tests Copy link Link copied!Conclusion Copy link Link copied!Sort: