I am wondering if it is possible to create modular folder structure in ionic 2 without any problems.
Currently my app uses the default
However, I’d like to organize functional modules as such to be able to reuse them in another app easily (and since I prefer functional modules over type-folders since its a lot more manageable).
So the structure I have in mind would be more like
|-- feature 1
…|-- subfeature 1.1
|-- feature 2
am I limited to use the “pages” and “providers” folder? is the compiler somehow using this specifically?
Thanks for your response.
Maybe it would be a good idea to make such feature-based modular structure the default ionic structure since its quite better to handle?
Can I somehow create a @NgModule for each feature and subfeature and get any advantage from it? e.g. Could I maybe register declarations, entryComponents, providers etc. within each module and only provide such module to the main App module, so that the main app does not have to include each single page, provider etc.?