text-node

A delta stream which writes to text nodes

text-node

A delta stream which writes to text nodes

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>
var deltas = someDeltaStream
    , elem = someElement
 
deltas.pipe(TextNode(elem))

npm install data-bind

  • Raynos