mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Also fixes #395 - Make w-bind attribute completely optional Also fixes #399 - Single file Marko component
14 lines
305 B
JavaScript
14 lines
305 B
JavaScript
module.exports = {
|
|
getInitialState: function(input) {
|
|
return {
|
|
name: input.name,
|
|
age: input.age
|
|
};
|
|
},
|
|
getName: function() {
|
|
return this.getEl('name').innerHTML;
|
|
},
|
|
getAge: function() {
|
|
return this.getEl('age').innerHTML;
|
|
}
|
|
}; |