diff options
author | Jakob Odersky <jakob@inpher.io> | 2019-11-25 23:23:59 -0500 |
---|---|---|
committer | Jakob Odersky <jakob@inpher.io> | 2019-11-26 13:40:36 -0500 |
commit | 2f298c65846b2f62b9b40cd23f11971b301829f3 (patch) | |
tree | d415576639ebd35004441c61e9a7aa5c8b06ab00 /webapp | |
parent | c458a1bd7d173419232ee6e49f3a06ddb4bb7c39 (diff) | |
download | scala-tutorial-2f298c65846b2f62b9b40cd23f11971b301829f3.tar.gz scala-tutorial-2f298c65846b2f62b9b40cd23f11971b301829f3.tar.bz2 scala-tutorial-2f298c65846b2f62b9b40cd23f11971b301829f3.zip |
Create basic ScalaJS project and serve it from the server
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/src/Main.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webapp/src/Main.scala b/webapp/src/Main.scala new file mode 100644 index 0000000..5aa2f2b --- /dev/null +++ b/webapp/src/Main.scala @@ -0,0 +1,13 @@ + +import org.scalajs.dom +import scalajs.js.annotation + +@annotation.JSExportTopLevel("Main") +object Main { + + @annotation.JSExport + def func() = { + dom.console.log("hello from ScalaJS!") + } + +} |