diff --git a/js/ui/botui/examples/hello-world-webpack/app.js b/js/ui/botui/examples/hello-world-webpack/app.js new file mode 100644 index 0000000..a88b0cb --- /dev/null +++ b/js/ui/botui/examples/hello-world-webpack/app.js @@ -0,0 +1,16 @@ +import BotUI from 'botui' +import Vue from 'vue' + +// window.Vue = Vue; // use either this +var botui = new BotUI('hello-world', { + vue: Vue // or this +}); + +botui.message.add({ + content: 'Hello World from bot!' +}); + +botui.message.add({ + human: true, + content: 'Hello World from human!' +});