Reputation: 979
In my vue application I need an optional router like this
#/profile/(:user/)?task/current-task
Here I want user will be optional. if user not exit then I want to show current login user task.
I know #/profile/(:user/)?
it possible. But having children after an optional params not working for me.
any suggestion?
Upvotes: 1
Views: 245
Reputation: 22403
It's possible
You can define #/profile/:user?/task/current-task
Demo
More nested params
Upvotes: 1