4 ms·
Yes, you should have separate folders for controllers directives etc, when you are grouping by features, under the feature. Otherwise good luck telling where ev
by ZoeZoeBee 11y ago
Yes, you should have separate folders for controllers directives etc, when you are grouping by features, under the feature. Otherwise good luck telling where everything is, when you have something beyond a trivial app...
I'm not suggesting putting all components in component folder and all services in services folder.
https://egghead.io/lessons/angular-2-organizing-angular-2-projects-by-feature https://egghead.io/lessons/angular-2-organizing-angular-2-pr...
- maaaats 11y agoWe have something far beyond a trivial app, and still never have folders for controllers etc. If a feature becomes big enough that this is needed, e.g. more than a few components, they are split up and grouped in several subfolders.
- ZoeZoeBee 11y agoThat is why they are called style guides and are opinions. No need to go telling someone they are wrong simply because you do not see the benefit to it...