Como ven se crea un routing.module por cada pagina que creo en el proyecto, me gustaria saber como hago para que se genere la pagina normalmente sin el routing module
Please, write your questions in English since this is a English website. Can you tell me why you want to create a page without routing? Ionic needs the routing for navigation and animations, from documentation:
The Angular Router is one of the most important libraries in an Angular application. Without it, apps would be single view/single context apps or would not be able to maintain their navigation state on browser reloads. With Angular Router, we can create rich apps that are linkable and have rich animations (when paired with Ionic of course).
Normally, all files are created without routing.module, isn’t it supposed to only be app-routing.module and not on all pages created? when I create a project a page is created automatically and that does not have routing.module
Hola colega, veraz llevo mucho tiempo usando Ionic y la verdad no he visto nada que pueda servir como respuesta para lo que quieres hacer, pero lo único que debes hacer es entrar al modulo y eliminarlo, dejame busco alguna alternativa que pueda ayudarte pero lo veo dificil, ya que en la documentación no encontre nada relacionado.
Lo que puedes generar es un componente este si no se importará automáticamente en el routing.
I understood better now what you are saying, checking the files of my project I can see that only one page have a page-routing.module.ts file. This page particularly uses a module named ActivatedRoute and believe that is the reason in my case for this additional file. I also see this same situation in older versions of Ionic, can you tell me which one are you using?
From this answer I can see that this is a “normal” behavior and not some error:
Each page has its own module + routing module so it can be easily lazy loaded.
If you do not want this (but want eager loading instead), you can remove its module and include it in the parent (e.g. declare tab-pages with routes in their parent).
You can help him with Spanish, but the vast majority of users won’t be helped, contrary to what I believe to be the purpose of this site. Please check this.
Did you know that Ionic is being translated into Spanish and other languages and I am one of the collaborators that is helping to translate it?
So if someone asks for help in Spanish, it is no problem to help you in Spanish, and if it does not help other users, it is not a problem, in one way or another they are helped, do not look for your comfort, we must help those who need in your language …
si, me aparece la opción de crearlo con angular o reactjs y elijo angular(perdon si tardo en responder pero el foro me hace esperar unos mn para volver a escribir)/
yes, I get the option to create it with angular or reajs and I choose angular
No te preocupes por el tiempo, verás acabo de realizar una revisión en el foro y lo que está pasando es que la última versión de Ionic se modificó el sistema de rutas pero eso es por ANGULAR Y LAZY LOAD, entonces me temo que te será difícil no crear una página sin el app routing, ya que antes sucedía lo que te compartí antes
La ruta se generaba en el page.Module pero ahora se migró para que se genere un archivo distinto por si quieres personalizar más esta ruta con rutas hijas etc para tener el código más limpio y estructurado.
Fijate en el page.routing.module esta el codigo que antes estaba en el module al igual que las importaciones, pero estas las puedes eliminar si tu quieres y solo eliminar la referencia que hay en el page.module donde e importa el page.routing.module y luego está la importas en el app.routing global si gustas.
Si quieres ayuda más clara puedo conectarme con teamviewer para explicarte dentro de unas dos horas si gustas.
-----------English--------
The file PAGE.ROUTING.MODULE is normality in the lasted version of ionic.
Currently Ionic don’t have a method to generate pages without page.routing.module.
ah vale, creo que ya entiendo. Lo que dices es que eso es normal en la ultima versión de ionic que lo único que puedo hacer es eliminar el page-routing.module que se crea en la pagina y eliminar las importaciones de otros archivos y modificar el app-routing.module y el page.module?, si no es eso si me gustaría conectarme por teamviewer o por skype.
Pero lo raro es por qué pagina home que se crea con el proyecto se crea sin el routing.module
Correcto, ese archivo de page.routing es normal en la ultima version y solo eliminas ese archivo y la importaciones que están en el módulo de esa pagina que creaste.
Solo recuerda que el app-routing.module.ts es el control de rutas globales, entonces en ese sí deberás importar la página para usarla como una ruta.
Claro yo me conecto y te explico paso a paso esa parte para que te quede claro, dentro de 2 horas exactamente podría conectarme mejor dicho a las 5:00PM -6GTM hora de Honduras. aca son las 3:13 de la tarde no se que hora sea en tu pais, pero solo calcula 2 horas y me escribes por privado por aquí.