-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A way to generate a page without a module, and link it to the relative module. #445
Comments
@Newbie012 Okay so to fulfill this feature request, we'd need to add cc @mhartington |
@dwieeb Yeah, pretty much it :) |
I tried generating page without module using |
Yeah, I think this issue has been resolved. |
hmm
|
Yeah, I think we wanted to align it with what the component schematic was doing. I created a PR to add a |
👋 Hey folks, question. Are we looking to not generate a module for a page, or are we looking to auto-generate a route for said module? Technically, pages/components are the same thing, just angular components. Pages only differ because they include routing logic and modify the root route module to add a new path. Reading over, I wonder if instead of not creating a module, we just have an option to skip the import process
Creates
This would not generate a |
Hello Team, is there a solution for this so far? |
I had my hands on Ionic CLI today, and I usually build my apps with Angular CLI. I heard Ionic CLI integrates well with the Angular CLI (or to be more accurate, using angular CLI) so I thought why not give it a try.
Usually, when I start an app, I structure it like so (in a nutshell):
I read that there's an option to generate a
page
, which is simply a component, with aPage
suffix instead ofComponent
suffix, and it generates along the way a module for the page, and lastly, it links the generated module to the app routing.IMO (and people are free to argue about it), the
generate page
does much more than just creating a new page, and that limits me to build my app with my own structure. I might have 1 module with multiple pages (e.g AuthModule with login, register, and a profile page).So my alternative is to use the traditional way by creating a new
component
and not apage
. But then, to keep the style guide of Ionic, I would like to have aPage
suffix and not aComponent
suffix. Plus, I would like to link the generated component (which would be a page) to the relative module (e.g AuthModule) and not the AppModule, since I've already linked my AuthModule to AppModule.The text was updated successfully, but these errors were encountered: