t</span>
hx.component.register(element.node(), api)

<span class="hljs-comment">// Call into the component api to get the value</span>
hx.select(<span class="hljs-string">'#click-button'</span>).on(<span class="hljs-string">'click'</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
  data = hx.component(element.node()).data().join(<span class="hljs-string">'\n'</span>)
  alert(data)
})</code></pre></div></div></div></div></div> </div><