Can I change the file structure?


#1

Hello.
I quite like the file structure described in angular style guide. But ionic starters have views placed in src/pages directory, also ionic generate page generates pages in src/pages/page.

If I will move the files from src/pages to e.g. src/app/module/page, will it break any ionic logic?
Why does ionic use different structure at all?
Could not find any info on that in search.


#2

I would leave the stuff in the app directory (app module, component, global SCSS, main.ts) where it is. Everything else I expect you can move around as you like, as long as you update all the imports to match.


#3

Thanks.I’m following your recommendation :slight_smile: