Record property changes with this handy little element.
[ This description is mirrored from README.md at github.com/jifalops/value-history on 2019-05-10 ]
value-history
Record property changes with this handy little element.
Installation
bower i -S value-history # Polymer 2.0 hybrid (1.x compatible)
bower i -S value-history#0.1.0 # Polymer 1.x based
Usage
Primarily for use with app-location
in client-side routed apps, or for debugging and testing.
- Tell it which property to watch for changes
- Optionally limit the history to a certain length.
Demo
Polymer bindings may not work in this readme demo.
<value-history value="[[val]]" history="{{history}}" limit="[[limit]]"></value-history>
<input placeholder="value" value="{{val::input}}" length="5"/><br/>
<input placeholder="limit" value="{{limit::input}}" length="5"/>
<dom-repeat items="[[history]]">
<template>[[item]]<br/></template>
</dom-repeat>
Full demo: webcomponents.org | github.
API: webcomponents.org
Contributing
- Fork it on Github.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
License
Install
Framework Support
Browser Compatibility
Install with
Run the above Bower command in your project folder.
If you have any issues installing, please
contact the author.
Release notes - Version 0.2.3
Dependencies
- polymer#Polymer/polymer#^2.0.0