Light-weight element to expose global variables to Polymer data binding.

[ This description is mirrored from README.md at github.com/jifalops/global-var on 2019-05-10 ]

Published on webcomponents.org

global-var

Light-weight element to expose global variables to Polymer data binding.

Installation

bower install --save global-var

Usage

  1. Consider not using global variables.
  2. Decide to use global variables.
  3. 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

  1. Fork it on Github.
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

License

MIT

Install

Link to this version
ImportedReleased 26 April 2017Other
Framework Support
Polymer 1.0+
Browser Independent
Install with
Release notes - Version 0.1.0

Dependencies

Polymer/polymer#^1.4.0