0.4.0 • Published 7 years ago
button-back v0.4.0
\<button-back>
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 - Install with NPM - Simple install - Manual install - Install with Bower
- Usage
- License
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>