# How to use same page as a modal and page,for modal we should not declare it in app.module but for page we need to declare

**URL:** <https://forum.ionicframework.com/t/how-to-use-same-page-as-a-modal-and-page-for-modal-we-should-not-declare-it-in-app-module-but-for-page-we-need-to-declare/129533>\
**Category:** ionic-v3\
**Created:** [May 2, 2018, 2:50pm UTC](https://forum.ionicframework.com/t/how-to-use-same-page-as-a-modal-and-page-for-modal-we-should-not-declare-it-in-app-module-but-for-page-we-need-to-declare/129533 "2018-05-02T14:50:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeepaanu](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@pradeepaanu](https://forum.ionicframework.com/u/pradeepaanu)\
**Post date:** [May 2, 2018, 2:50pm UTC](https://forum.ionicframework.com/t/how-to-use-same-page-as-a-modal-and-page-for-modal-we-should-not-declare-it-in-app-module-but-for-page-we-need-to-declare/129533/1 "2018-05-02T14:50:54Z")

</div>

how to use same page as a modal and page,for modal we should not declare it in app.module but for page we need to declare it.How can I solve this??

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:37pm UTC](https://forum.ionicframework.com/t/how-to-use-same-page-as-a-modal-and-page-for-modal-we-should-not-declare-it-in-app-module-but-for-page-we-need-to-declare/129533/2 "2021-07-19T21:37:22Z")

</div>

Closed on July 19, 2021, 9:37pm UTC


