UNPKG

can

Version:

MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.

18 lines (17 loc) 319 B
steal("can/component", "can/util",function(Component, can){ return Component.extend({ tag: "href-component", template: $('#basics').html(), viewModel: { recipe: { id: 5, name: 'Cool recipe' } }, events: { "inserted": function(){ console.log('href-component INSERTED'); } } }); });