Why is SharedModule used and what should it contain?

Expert Angular

Answer

SharedModule contains reusable UI pieces—components, directives, pipes. It must NOT contain stateful services to avoid duplicated instances.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice