We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
StackRouter.of({ path: "/pages", to: "/pages/page1", routes: [ Route.of({ path: "/pages/page1", build: (match, state, router) => new Page1(state.data, router) }), Route.of({ path: "/pages2/page3", // <-- There pages2 build: (match, state, router, view) => { return new Page2(Object.assign({ place: 2 }, state.data), router); } }) ] }),
This definition is not valid, also it should be possible. This is too prone to the Errors. This item is important
The text was updated successfully, but these errors were encountered:
So the root rooter should have default path as / when it is not set
/
Sorry, something went wrong.
in roadmap
and I can suggest :
var withParentPath = (parent) => (fn) => path => parent+'/'+(fn && fn(path) || path) var root = withParentPath('/root') var parent = withParentPath('parent') var parent2 = withParentPath('parent2'); path = root(parent(parent2())) path('child1') // "/root/parent/parent2/child1"
cenkce
No branches or pull requests
This definition is not valid, also it should be possible. This is too prone to the Errors.
This item is important
The text was updated successfully, but these errors were encountered: