HaxeFoundation / HaxeFoundation/haxe.org-comments
[code.haxe.org] JavaScript - Using Haxe classes in JavaScript
- Dominant language
- No language data
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
# Using Haxe classes in JavaScript - JavaScript - Haxe programming language cookbook
Normally, when compiling Haxe to JavaScript, the resulting code is kept away from the global scope. This means that you can't reach the Haxe generated code from other scripts. To make that possible, there's the @:expose metadata that can be used on a class. This makes the class exposed to the global scope, and therefore possible to use in plain JavaScript.
[https://code.haxe.org/category/javascript/using-haxe-classes-in-javascript.html](https://code.haxe.org/category/javascript/using-haxe-classes-in-javascript.html)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.