# New page Created Module.ts file

**URL:** <https://forum.ionicframework.com/t/new-page-created-module-ts-file/85839>\
**Category:** ionic-v3\
**Created:** [April 8, 2017, 6:55am UTC](https://forum.ionicframework.com/t/new-page-created-module-ts-file/85839 "2017-04-08T06:55:48Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![formalin14](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/formalin14/32/111140_2.png) [@formalin14](https://forum.ionicframework.com/u/formalin14)\
**Post date:** [July 5, 2017, 2:51am UTC](https://forum.ionicframework.com/t/new-page-created-module-ts-file/85839/28 "2017-07-05T02:51:50Z")

</div>

When working with a new page, you have 3 choices:

1. ionic 2 way: add page component/class(eg AboutPage) to @NgModule’s declarations array and entryComponents array in the app.module.ts file. But when you use --prod to build the project, the about.module.ts file will be auto included, so there will be an error complaining duplicate component declarations. To fix this, you must delete the about.module.ts file.
2. angular 4 NgModule way: ionic 3 cli generate page with a .module.ts file, which makes the page an angular 4 ngmodule (checkout [https://angular.io/guide/ngmodule](https://angular.io/guide/ngmodule)). You need to add the page module(eg AboutPageModule) to @NgModule’s imports array in the app.module.ts file.
3. ionic 3 lazy loading way: you do nothing with the app.module.ts file, but need to change this.navCtrl.push(AboutPage); to this.navCtrl.push(“AboutPage”); . That is change class to classname **STRING**.

---

_[View the full topic](https://forum.ionicframework.com/t/new-page-created-module-ts-file/85839)._
