elm-pages-v3-beta/examples/simple/beta-index.js
2020-10-20 20:52:36 -07:00

10 lines
277 B
JavaScript

export default function (elmLoaded) {
console.log("Hello outside of promise!");
elmLoaded.then((elmPagesApp) => {
console.log("Inside of promise");
elmPagesApp.ports.example.subscribe((message) => {
console.log("Elm port message: ", message);
});
});
}