button-back

0.4.0 • Public • Published

<button-back>

Pipeline status Published on NPM MIT License

Element to go to the previous page

This element doesn't work like window.history.back() but compute a link from the given URL to go to the previous folder (or slash in the URL)

Install

Install with Yarn

Using Yarn

$ yarn add button-back

Install with NPM

Simple install

$ npm install button-back --save

Manual install

First, make sure you have Bower and Polymer CLI installed

$ npm install button-back --no-optional --save

Install with Bower

First, make sure you have Bower and Polymer CLI installed

$ bower install button-back --save
$ npm run-script analyze # if you need to watch the documentation 

Usage

<button-back> need route provided by <app-location> or <app-route> to be notified when the route is modified

<app-location
    route="{{route}}"
    use-hash-as-path
></app-location>
<button-back
    route="{{route}}"
    use-hash-as-path
></button-back>

License

MIT Licence

Package Sidebar

Install

npm i button-back

Weekly Downloads

0

Version

0.4.0

License

MIT

Last publish

Collaborators

  • pinage404