-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(workbench): migrate deprecated component construction in `WbCom…
…ponentPortal` Angular 13 has deprecated the `ComponentFactoryResolver`. Angular 14 provides a new API to construct components without having to attach them to the DOM, which was not possible in Angular 13. However, we can no longer construct views and viewparts in the `WorkbenchUrlObserver`. Otherwise the routing injection context would be incorrect. This was also the case with the deprecated `ComponentFactoryResolver`, but we managed to replace the injection context. However, this behavior was never documented by Angular and consequently is not supported anymore. In order to still create inactive views, e.g., when loading a layout into the workbench, we moved their creation to the viewpart component, giving us the correct injection context.
- Loading branch information
1 parent
6ce5a89
commit 43d7d51
Showing
13 changed files
with
196 additions
and
262 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
Oops, something went wrong.