I am new to Ionic and when generating the pages in Ionic, we have to manually add the pages to the app.module.ts.
Is there any way to add pages to app.module.ts using CLI in Ionic?
I am trying this: ionic g page <pagename> --module=app
Any answers is much appreciated.
ionic g page <pagename>
out to be enough. It should also automatically add it to your app.module.ts, if not add it to declarations
and entryComponents
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.