Skip to content

psirenny/d-update-url-from-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Update the page's url with a path value when it changes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published