I would like to build a very large application for multiple platforms with ionic 2 (ios, android, pwa, etc). For developing with a team it would be nice to include the style guide and recommendations for angular 2 (https://angular.io/docs/ts/latest/guide/style-guide.html).
The documentation for angular 2 recommends to provide services in AppModule and to not load them multiple times. I would like to group pages in different modules, but to use components from ionic 2 I have to import IonicModule into every module that uses them, but ionic 2 does not provide a module only containing the pipes, directives and components. It has only its IonicModule, that exports for example BrowserModule. But BrowserModule should be imported only into AppModule and nowhere else. In other modules the recommendation is to import CommonModule instead of BrowserModule.
Does somebody has a suggestion how to solve this in a good way?
Yes I googled it, but have not found anybody mentioning this topic. All starters I found use a project structure I would like to avoid: All Services in a folder called providers, all pages in a folder called pages and only one module. It would be nice, if there would be an IonicModule.forChild() method, that returns a module containing only the declarations and entryComponents
Yes. They changed the BrowserModule to CommonModule. So an import of IonicModule should not be a big problem. Just skip the forRoot in your child modules. I guess it would work now. But there is no chance for completely lazyloading these modules. Only Pages can be lazyloaded by use of the new IonicPageModule-Feature.