text-node
v0.3.0
Published
A delta stream which writes to text nodes
Downloads
9
Readme
text-node
A delta stream which writes to text nodes
Example
var elem = document.getElementById("thing")
var stream = TextNode(elem)
stream.write([{
one: "goes in data-one span"
, two: "goes in data-two span"
}])
<div id="thing">
<span data-one></span>
<span data-two></span>
</div>
Example with delta stream
var deltas = someDeltaStream
, elem = someElement
deltas.pipe(TextNode(elem))
Installation
npm install data-bind
Contributors
- Raynos