2

I want to create an application with multiple components to separate each applications.

My Project Structure

Project structure

My Main Page

main page

How can I change the application when clicking on menu?

Boghyon Hoffmann
  • 17,103
  • 12
  • 72
  • 170
  • 1
    Possible duplicate of [Component reuse in manifest.json file](https://stackoverflow.com/questions/46343788/component-reuse-in-manifest-json-file) – Boghyon Hoffmann Sep 27 '17 at 14:19

1 Answers1

1

You can always dynamically load components like follows:

var oComponent = new sap.ui.core.ComponentContainer("componentID", {
  name: "apps.ToolsNamingFileGenerator"
});

Just place it in your UI wherever you want. The Component should inherit context and models from the Component it is instantiated from.

BR Chris

cschuff
  • 5,502
  • 7
  • 36
  • 52