Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Live binding question: does it generate some javascript intermixed with the HMTL?

$
0
0
No. It actually means the opposite. The renderer attaches live binding to only the live-bound part. So e.g. if you have something like
  1. <div class="{{attributeName}}"><span>This is some {{text}}</span></div>
Only the class attribute will be updated if attributeName changes and only the text node if text changes.

This is not done when the string array is joned. Instead the string contains placeholder attributes like data-hookup-id in the HTML
that lets the renderer know where live-binding is happening.

Viewing all articles
Browse latest Browse all 3491

Trending Articles