I am developing some reusable components with AngularJS, to steal some ideas and best practices Angular-UI / Bootstrap is checked and I was surprised that they create a module for each bootstrap component.
Can anyone explain this? Should I follow this method in this project?
Because some people may just need one component, and not necessarily all of them.
If your project is going to be a set of open source components, then you can consider that approach. Otherwise, there is probably no need for this.
Recommended method of a "normal" structure, large applications will group those things that share the view in a module. So you can have a admin
module, message
module ... with each of your components.
Comments
Post a Comment