can-view-live
Setup live-binding between the DOM and a compute manually.
Object
Use
can-view-live is an object with utility methods for setting up
live-binding in relation to different parts of the DOM and DOM elements. For
example, to make an <h2>
's text stay live with
a compute:
var live = require("can-view-live");
var text = canCompute("Hello World");
var textNode = $("h2").text(" ")[0].childNodes[0];
live.text(textNode, text);