Provide a flag when creating a new Analog app to default to config based routing #1367
Replies: 2 comments 9 replies
-
If you want to manually configure routes, I think config based routing is easy enough to switch out. We could add a section in the docs on how to do this |
Beta Was this translation helpful? Give feedback.
-
@brandonroberts Thanks for giving this consideration and opening it up to discussion. This is definitely a "convenience" request, to give context on what prompted me to request this feature: I wrote a personal guide for setting up apps in an NX workspace. The initial app creation is very simple because it's practically one line that I can copy/paste and viola, project is setup the way I need it. I am also now mentoring others to get clients/jobs and training them to use my setup (community outreach not for profit). In order to include Analog as part of the guide I now have to write additional instructions just to get started (scss and config routing) which used to be a one liner. This is what prompted me to make the request. I would really like to keep that "one line" experience for project setup and I'm even willing to do the work to implement it. I know this isn't a super critical feature and of course it does mean excluding a feature that is advertised for Analog and for me it's purely for convenience but another possible benefit I can think of is maybe to some Angular Devs as good middle ground to migrate gradually by opting into a more familiar environment initially and adopting more Analog features as they get more experience with it. |
Beta Was this translation helpful? Give feedback.
-
Which scope/s are relevant/related to the feature request?
create-analog
Information
This request is more of a personal preference, I've used file based routing by working on a svelte project, it's a good system but personally I do prefer config based routing, would it be possible to include a flag/arg when creating a new project to stick to Angular's default routing?
I would also like to state that my desire for config based routing here is not a reflection on the work done on file based routing in Analog. I do genuanly appreciate the work that's been put into it and I know a lot of good work has gone into it and would encourage anyone to at least try it but it's just not my preference.
Describe any alternatives/workarounds you're currently using
Undoing the file based routing setup and reconfiguring default Angular setup.
I would be willing to submit a PR to fix this issue
Beta Was this translation helpful? Give feedback.
All reactions