Blazor in WebComponent #44588
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-wasm
This issue is related to and / or impacts Blazor WebAssembly
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I want to use Blozor in a web component (preferably in the shadow DOM, closed), but the bootloader loads everything into the global window.DotNet and window.Blazor. And Blazor is then also initialised there.
Such a web component can never be used in a Blazor application, as soon as it is not hosted in the same.
Similarly, two (or more) web components from different sources cannot be used at the same time.
Translated with www.DeepL.com/Translator (free version) from German
Ich möchte Blozor in einer Web-Component (möglichst im shadow-DOM, closed) verwenden, aber der Bootloader läd alles in das globale window.DotNet und window.Blazor. Und dort wird Blazor dann auch initialisiert.
Eine Solche Web-Componente kann nie in einer Blazor-Anwendung verwendet werden, so bald sie nicht in der selbigen gehostet wird.
Ebenso können keine zwei (oder mehr) Web-Componenten aus verschiedenen Quellen gleichzeitig verwendet werden.
Describe the solution you'd like
A way to create a web component in which the necessary scripts are loaded within the component and all dependencies are loaded relative to the source of the component. (Example relative loading: Including page is on server A, component is on server B => resources are loaded from server B).
For isolation, I would like the web component to use the shadow DOM with mode=closed.
Usage/Integration:
(German)
Eine Möglichkeit eine Web-Komponente zu erstellen in der die notwendigen Skripte innerhalb der Komponente geladen werden und alle Abhängigkeiten relativ zur Quelle der Komponente geladen werden. (Beispiel relatives Laden: Einbindende Seite liegt auf Server A, Komponente liegt auf Server B => Ressourcen werden vom Server B geladen)
Zur Isolierung würde ich es begrüßen, wenn die Web-Komponente den Shadow-DOM mit mode=closed verwenden würde.
Verwendung / Einbindung:
Additional context
Hints:
(German)
Hinweise:
The text was updated successfully, but these errors were encountered: