Entry Point

This topic applies to

Applies to

SuiteCommerce Advanced


Most feature module contain an entry point which defines how the module interfaces with the top-level application module. The entry point of a module is defined in a file called <module_name>.js.

All modules that are dependencies of the application define a method called mountToApp. The ApplicationSkeleton module calls this method for each module listed as a dependency in the starter file of the application. For most modules, the mountToApp method initializes and returns the router for the module, making the module available to the higher-level application context.

For modules that are included in the My Account application, the entry point also returns a MenuObject item. This object contains information about the module that the SC.MyAccount node uses to create and display the menu items that appear in My Account.