The definitions exported by the generated Slice code for top-level modules add symbols to the global window object in browsers, or to the native exports object in NodeJS.
When developing for NodeJS, you include the various Ice components with
require statements as shown below:
Importing the generated code for your own Slice definitions works the same way:
This example assumes the generated Slice definitions are in the file
Ice.js shown above only provides definitions for the Ice run time; you would need to explicitly include the corresponding files for any other Ice components that your application needs, such as
- Using the Slice Compilers