Reputation: 11
We have developed the Blazor Web components which renders the svg data. Component has dependency with the .NET core libraries(custom dll's). Is it possible to load/integrate the component in Angular or Vue.js project?
Upvotes: 1
Views: 749
Reputation: 3498
Yes, using Blazor components within JS projects works!
Blazor components can be instantiated from JavaScript by calling JSComponentConfigurationExtensions.RegisterForJavaScript
, which is available from ASP.NET Core 6.0 on.
Bridging the gap from a Blazor component to an Angular component (with @Input, @Output, events, ...) requires some further steps. See the JavaScript Component Generation project from the ASP.NET samples, or my BlazorInAngularDemo github project including a working demo.
Upvotes: 2