Derby JS component to update the page's url with a path value when it changes.
npm install d-update-url-from-path --save
Update the path /users/:username when the user's name changes:
<d-update-url-from-path segment="2" value="{{#root._page.user.name}}" />
render - Set to true
in order to re-render the url when it updates. Defaults to false
.
segment - The part of the path to update. Defaults to 1
.
value - The value to listen on and update the segment with. Required.