HTTP://WWW.JIANSHU.COM/P/D94324B722AFbackground
- With Ionic2 developed one or two small functions of friends will find that each new page will need to
\src\app\app.module.ts add the page corresponding to the class
- When the app page is a lot of people will feel confused, not clear which with which. What is more unacceptable is that when multiple individuals develop at the same time, often modify
app.module.ts , often cause code conflicts
- So we need to subdivide the page by module
Code Structure
- My app divided 4 sub-modules by function, respectively,,,
contact home login and mine . Specific code structures such as
Create multiple sub-modules by module division
Code Details
- For example, in
home.module.ts code, take note of different color annotations
- New sub-module, remember to add it to the total module
Home.module.ts
other
- The full code has been uploaded to GitHub
Ionic2 Combat-Create multi-module modules by module Division app