How modules are distributed on components. and what are the advantages of this new concept over simple folder organisation ?
Options:
- One module per component ?
- One module per page.
- Other ...
How modules are distributed on components. and what are the advantages of this new concept over simple folder organisation ?
Options:
Components, directives, pipes, and services should be grouped together per feature. If they are usually (re)used together, they should be in the same module.
A module can be lazy loaded. If you want a part of your application to be lazy loaded, then put the components, ..., that build that part of your application in such a module, or import modules that contain the components, ..., only from such a lazy loaded module.