Get yourself with Angular Standalone Components: Angular
The difference is, that in the first example you only import what you need, while in the second you import everything. Even if you only need 4 components
The entire ionic module is a larger import/bundle size than treeshaking, so the standalone imports should help reduce app size if that is a concern for your projects