I don’t use the cli generators. A lot of people don’t. You can physically create folders anywhere you want. Just make sure you import their contents correctly when you want to use them elsewhere.
Not for me… If you are not using the lazy method and you move the generated folder. Be sure to change the path in app.module.ts, because the CLI will create one but for the old path.
I do the same as the comment above
I ionic g page MYPAGE
move it to where I need.
How does Ionic knows ?
because when you create it with the CLI - it creates a mypage.module.ts - that exports itself and expose it to the entire app, so the location no longer matters.
why the location no longer matters ?
because when you’re working with module.ts files - you’re moving between pages with: this.navCtrl.push('myPage') ( where you simply call its name, no need to import it first etc … )
vs this.navCtrl.push(myPage), where you used to import it everywhere you needed, and used it like a variable.
Only thing need to keep in mind, is that the location of the services and other imports made inside myPage
if they were imported like import { Auth } from '../../../services/my.service; - they heirarchy of those files probably will need adjustments based on your directory location … but it’s an easy fix
Note that after you generate the page and move it to a sub-folder, you will need to rebuild the app, or restart the app from command line so Ionic will know the location of the page. You’ll get an “invalid link” error if you just keep working