DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
  • Ecosystem
  • Infrastructure
    • can-construct
    • can-control
    • can-event
    • can-event/async/async
    • can-event/batch/batch
    • can-observation
    • can-simple-map
    • can-util
    • can-view-callbacks
    • can-view-live
      • can-view-live.attr
      • can-view-live.html
      • can-view-live.list
      • can-view-live.text
    • can-view-model
    • can-view-nodelist
    • can-view-parser
    • can-view-scope
    • can-view-target
  • Legacy
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Infrastructure
  • /
  • can-view-live
  • / On this page
    • can-view-live

      module

      Setup live-binding between the DOM and a compute manually.

      • npm package badge
      • Star
      • source

      Object

      Options

      • An {Object}:

        object with the live-binding methods: can-view-live.html, can-view-live.list, can-view-live.text, can-view-live.attr and [can-view-live.attrs].

      Use

      can-view-live is an object with utlitiy 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 text = canCompute("Hello World");
      var textNode = $("h2").text(" ")[0].childNodes[0];
      live.text(textNode, text);
      

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.