UNPKG

marko-widgets

Version:

Module to support binding of behavior to rendered UI components rendered on the server or client

13 lines (11 loc) 279 B
module.exports = require('marko-widgets').defineComponent({ template: require('./template.marko'), getInitialState: function() { return { name: 'app-foo' }; }, init: function(widgetConfig) { window.fooWidget = this; } });