Web component based on Polymer 2. A data transform component via scoped function

[ This description is mirrored from README.md at github.com/Prhythm/prism-transit on 2019-05-22 ]

<prism-transit>

Published on webcomponents.org

<prism-transit> is a Polymer 2 element provides data transform via it's own function.

Usage

<prism-transit from="[[num]]" to="{{result}}" transform="square">
  function square(n) {
    return n * n;
  }
</prism-transit>

or use comment if needed

<prism-transit from="[[num]]" to="{{result}}" transform="square">
  <!--
  function square(n) {
    return n * n;
  }
  -->
</prism-transit>

Licence

MIT Licence

Install

Link to this version
Not workingReleased 31 July 2017Other
Framework Support
Polymer 2.0+
Browser Compatibility
Install with
Release notes - Version 2.0.1

Dependencies

Polymer/polymer#^2.0.0