prism-transit
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>
<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
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Dependencies
Polymer/polymer#^2.0.0
- Released
- 2017-07-31
- Maturity
- BROKEN
- License
- Other
Compatibility
- Framework
- Polymer 2.0+
- Browser
- Browser Independent