html markup events?

HI, how to bind event to components in html markup?

<div data-view="icon" data-icon="angle-double-up" data-click="console.info(arguments);"></div>

arguments got “console.info(arguments);”, not the click arguments

Instead of inlining the code, use the name of method that need to be called

function some(id){ alert(id); }
<div data-view="icon" data-icon="angle-double-up" data-click="some"></div>