angular-cn/public/docs/_examples/cb-ts-to-js/js/app/hero-dsl.component.js

24 lines
478 B
JavaScript
Raw Normal View History

// #docplaster
// #docregion appexport
(function(app) {
// #docregion component
var HeroComponent = ng.core.Component({
selector: 'hero-view-2',
template:
'<h1>Name: {{getName()}}</h1>',
})
.Class({
constructor: function() {
},
getName: function() {
return 'Windstorm';
}
});
// #enddocregion component
app.HeroComponentDsl = HeroComponent;
})(window.app = window.app || {});
// #enddocregion appexport