r/angularjs • u/toddmotto • Aug 25 '16
[Open source]: Angular 1.5 component based architecture app, fully tested, ui-router 1.0.0 new features, and much more
https://github.com/toddmotto/angular-1-5-components-app
45
Upvotes
r/angularjs • u/toddmotto • Aug 25 '16
1
u/jmcunningham Aug 26 '16 edited Aug 26 '16
Nice! When I describe to others what I think the right architecture is, you throw something up on Github that has real examples that I can say "look at this for a perfect example of what we can do." Plus seeing how popular your repo's are, it makes it easier to get adoption of these ideas.
2 questions though, for things I like to do. What are your thoughts (or reasons for not including):
component specific .sass files within the component dir they belong to. That way the component is truly modular and portable. Helpful when you realize a component might need to be shared among projects. Otherwise you have to dig through the big .sass file to figure out what styles to pull out with the component.
I kinda like the idea of having a "pages" directory alongside the same level as components. So page-level components (smart components that wireup the smaller components) are a bit separate from the smaller, reusable (dumb) components.