-
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.
feat(workbench/view): associate
sci-router-outlet
with provider and…
… capability identity The following attributes are added to `sci-router-outlet` when embedding a microfrontend as workbench view: - `data-capabilityid`: identity of the view capability - `data-app`: symbolic name of the application that provides the view capability
- Loading branch information
1 parent
74db341
commit 47f0f96
Showing
2 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
...bench/src/lib/microfrontend-platform/microfrontend-view/microfrontend-view.component.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<wb-content-as-overlay [overlayHost]="iframeHost"> | ||
<sci-router-outlet #router_outlet | ||
[name]="viewId" | ||
[ngClass]="microfrontendCssClasses" | ||
[attr.data-capabilityid]="viewCapability && viewCapability.metadata!.id" | ||
[attr.data-app]="viewCapability && viewCapability.metadata!.appSymbolicName" | ||
[ngClass]="viewCssClasses" class="e2e-view" | ||
[keystrokes]="keystrokesToBubble$ | async"> | ||
</sci-router-outlet> | ||
</wb-content-as-overlay> |
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