scala.scalajs.js.annotation
Marks the annotated object as representing the JavaScript global scope.
This is particularly useful to model top-level functions and fields that are in the JavaScript global scope. They can be declared inside an object annotated with @JSGlobalScope.
@JSGlobalScope
Calling JavaScript from Scala.js
Marks the annotated object as representing the JavaScript global scope.
This is particularly useful to model top-level functions and fields that are in the JavaScript global scope. They can be declared inside an object annotated with
@JSGlobalScope
.Calling JavaScript from Scala.js