1 | initial version |
The module.ts and app-routing.module.ts files are typically generated when you run the Ionic CLI command ionic generate page <page-name>
. These files are specific to individual pages/components within an Ionic app and are not typically generated by default when creating a new project.
However, if you would like these files to be generated with your new project, you can manually create them by running the following commands in your terminal:
ng g m app-routing --flat --module=app
ng g m <page-name>
ng g c <page-name> --skipTests=true --module=<page-name>
The first command generates the app-routing.module.ts file, the second command generates a new module for your page/component, and the third command generates a new component for your page/component within the previously generated module.