According to Angular official docs starting ver 19, in order to keep your components modular, you simply need to update your components to standalone: false