-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(admin-ui-plugin): Allow UI extensions to contain multiple modules
BREAKING CHANGE: The API for configuring Admin UI extensions has changed to allow a single extension to define multiple Angular NgModules. This arose as a requirement when working on more complex UI extensions which e.g. define both a shared and a lazy module which share code. Such an arrangement was not possible using the existing API. Here's how to update: ```TypeScript // Old API extensions: [ { type: 'lazy', ngModulePath: path.join(__dirname, 'ui-extensions/greeter'), ngModuleFileName: 'greeter-extension.module.ts', ngModuleName: 'GreeterModule', } ], // New API extensions: [ { extensionPath: path.join(__dirname, 'ui-extensions/greeter'), ngModules: [{ type: 'lazy', ngModuleFileName: 'greeter-extension.module.ts', ngModuleName: 'GreeterModule', }], } ], ```
- Loading branch information
1 parent
d222449
commit b23c3e8
Showing
4 changed files
with
49 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters