d-update-url-from-path
v1.0.0
Published
Update the page's url with a path value when it changes.
Downloads
2
Maintainers
Readme
d-update-url-from-path
Derby JS component to update the page's url with a path value when it changes.
Installation
npm install d-update-url-from-path --save
Example
Update the path /users/:username when the user's name changes:
<d-update-url-from-path segment="2" value="{{#root._page.user.name}}" />
Properties
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.