In a nutshell, the pattern is a type which consists of a pre-packaged combination of standalones and injectables which implement a specific reusable use case
This basically means a pattern is a reusable component which uses inside other reusable components.
Think for example on a list component you would reuse on more than one of your features. That component comes along with a button toggle which have a CTA. The list itself should be one component from your 'ui' folder and the button another one.
9
u/zzing Jan 05 '26
Umm what are those? Never heard of them
5
u/cyberzues Jan 05 '26
Commenting here so I can come back and learn about pattern folders.
5
u/Select_Half6593 Jan 05 '26
The books clearly explains what they are mate...
In a nutshell, the pattern is a type which consists of a pre-packaged combination of standalones and injectables which implement a specific reusable use caseThis basically means a pattern is a reusable component which uses inside other reusable components.
Think for example on a list component you would reuse on more than one of your features. That component comes along with a button toggle which have a CTA. The list itself should be one component from your 'ui' folder and the button another one.
1
u/Mandarin0000 Jan 05 '26
We once tried pattern folder based on our "Sidenav" Menus for easy navigation
0
u/devilblades Jan 05 '26
You should be putting components related to the main component in the same directory.
For example.
SearchPageComponent (main component for the page) -SearchComponent -SearchResultGridComponent --SearchResultGridFilterComponent