Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleImportant

1) Notice that variable pjs is declared outside of the class.

2) Notice that the logic is implemented within the class constructor

...

Code Block
languagejs
titlestart.js
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.

Image Added


Here is an example of a callable typescript module calling some functions of a typescript class (that does not use any pjs APIs)

...