This is an example project showing that Macwire works with Scala.js!
To see it yourself, follow these steps:
- you need to have SBT installed
- take a look at the sources. There's a very simple two-class object graph, being wired by Macwire in the
MainModule
trait - generate the javascript by running
fastOptJS
- now open
index.html
in a browser and enjoy the results! When clicking the button, a method on the wired object graph is invoked, and the object graph itself is printed as well.