...
Info | ||
---|---|---|
| ||
1) Notice that variable pjs is declared outside of the class. 2) Notice that the logic is implemented within the class constructor |
...
Code Block | ||||
---|---|---|---|---|
| ||||
app.get("/tsmodule2", profoundjs.express("pjstest/tsmodule2.js")); |
To register this as a webservice in NodeRun, right click on that file and choose properties, and then setup the routing path.
Here is an example of a callable typescript module calling some functions of a typescript class (that does not use any pjs APIs)
...