FishyK
FishyK

Reputation: 169

Should I update every component as standalone?

I'm a bit confused with the latest Angular update concerning standalone components. I read they are more efficient, but does this imply that every component (mid-size project) should be migrated to being a standalone component? While it may be more efficient, with e.g. lazy loading, I thought that you have to import way too many modules for each component. Even though Angular does this automatically when migrating, I am unsure about future additions to the code :/

Can someone explain if or why I should migrate my project fully to consist of standalone components?

Upvotes: 4

Views: 1469

Answers (1)

saiteja
saiteja

Reputation: 19

I recommend opting for standalone components and eliminating the ngModule structure. As outlined in this post, adopting standalone components can lead to a more optimised tree structure for your application.

Upvotes: 0

Related Questions