Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230979

Shared modalpage in Angular project

$
0
0

Hi

I think I did this differently

Modal:

  • created using ionic g page …
  • change the route in its routermodule to be ‘settings’ or something else (not being ‘’)
  • removing the routes in this module won’t work

app.routing-module.ts

  • remove auto generated routing to the modal

calling pages:

  • in its module imported the ModalModule
  • nothing on entryComponents and declarations
  • in the component part imported the ModalComponent

Works nice and I believe it is quite clean this way.

Tom


Viewing all articles
Browse latest Browse all 230979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>