-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Description
Which @angular/* package(s) are relevant/related to the feature request?
No response
Description
When creating an application entirely without modules, we have to specify standalone: true in every single component.
This creates more boilerplate and makes the code less readable.
Proposed solution
Would it be possible to create a flag (for example standalone: true) that is set during application bootstrap? This would make it possible to set this standalone globally and thereby avoiding adding the dreaded value to every component in the application.
Or even better, make it possible to set a default standalone value globally, and then let those components who wish to diverge from that, use their local standalone prop to override the global default.
This way we can write entire applications without ever using the standalone prop in components. And we can mix and match if needed, using the local component to override the global default.
Alternatives considered
Writing standalone:true in every component