You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone. That's more a feature request than an issue.
For the implementation, I think we can add support for named routes first as it'll help make certain routes unique. We could then upon these names have an url generator which would generate the urls for these names routes provided custom parameters.
As for the named routes it could be something like this:
In this case the route configuration object which hold the route name is the last parameter and is then optional. There may be other options which could be added later.
For the url generation we could have something like:
Or there could be by example a separate url generator object/class which will receive the router as constructor argument and implement the pathFor method.
I hope this is clear enough.
Thanks
The text was updated successfully, but these errors were encountered:
Hello everyone. That's more a feature request than an issue.
For the implementation, I think we can add support for named routes first as it'll help make certain routes unique. We could then upon these names have an url generator which would generate the urls for these names routes provided custom parameters.
As for the named routes it could be something like this:
In this case the route configuration object which hold the route name is the last parameter and is then optional. There may be other options which could be added later.
For the url generation we could have something like:
Or there could be by example a separate url generator object/class which will receive the router as constructor argument and implement the pathFor method.
I hope this is clear enough.
Thanks
The text was updated successfully, but these errors were encountered: