global-var:
[ This description is mirrored from README.md at github.com/jifalops/global-var on 2019-05-10 ]
global-var
Light-weight element to expose global variables to Polymer data binding.
Installation
bower install --save global-var
Usage
- Consider not using global variables.
- Decide to use global variables.
- Add
global-var
anywhere in your app to allow dynamic binding to them.
Demo
<global-var name="var1" value="{{var1}}"></global-var>
Full demo:
webcomponents.org
| github.
API: webcomponents.org
| github.
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