Why "prefer-standalone" only on components? #1667
Closed
Samuel-Therrien-Beslogic
started this conversation in
General
Replies: 1 comment
-
It should be the case for everything once this one lands: #1627 (review) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So there's a rule
@angular-eslint/prefer-standalone-component
since v16. But why not for Directives, Pipes, etc? Is it still best practice to declare those in modules? Reading https://angular.io/guide/standalone-components I don't see why not.My current understanding is that I really only need modules if I feel like grouping components/directives/pipes together to avoid having to import multiple in each standalone component (ie: reduced boilerplate). And that otherwise I should go full standalone.
Beta Was this translation helpful? Give feedback.
All reactions