mhartington / ama

Ask me anything!
5 stars 1 forks source link

Ionic 2 and NgModule #19

Closed pdrosos closed 8 years ago

pdrosos commented 8 years ago

Hi Mike,

I have a question about Ionic 2 in combination with Angular 2 modules. Now, when Ionic 2 uses Angular 2 final, it's theoretically possible to build modular application architecture.

My question is, will modular application architecture work in Ionic 2 in the same way it works in Angular 2 and is there something else in addition to keep in mind? Some Ionic specific issues, limitations, etc.?

Angular has updated style guide which includes modules and recommendations how to use them (app root module, core module, shared module, feature modules etc.). There are also some considerations to keep in mind, like where to put shared services between modules and where to put shared components/directives/pipes, so they work properly with lazy loaded modules and dependency injection. Is this all the same for Ionic 2 project, with the same things to keep in mind?

Thanks in advance for your time!