I have the following class
@js.native
class Foo extends js.Object {
var bar: String = js.native
}
And in my JSApp I have
object TutorialApp extends JSApp {
@JSExport
val bar = new Foo()
}
When I run I get $g.Foo is not a constructor. Following the scalajs doc I can not get what I am doing wrong here.