目录

How do I implement modular code management and cross-module routing without using a UIAbility?

You can use HSPs for module management. HSPs support page-to-page routing without requiring manual package imports. To implement routing, use either of the following methods:

Method 1: For routing to pages within the HSP, use the following format: @bundle:bundleName/moduleName/path/pageFileName (without the .ets extension)

Method 2: For routing within the entry module, use the following format: pages/pageFileName (without the .ets extension)

Reference

HSP