can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
16 lines (15 loc) • 354 B
JavaScript
steal("can/component", "can/util",function(Component, can){
return Component.extend({
tag: "my-component",
// call can.stache b/c it should be imported auto-magically
template: can.stache("{{message}}"),
scope: {
message: "Hello World"
},
events: {
"inserted": function(){
this.element[0].className = "inserted";
}
}
});
});