baer999
baer999

Reputation: 992

Blazor load JavaScript just in Component that require <script>

I want to implement an external (Google Maps) and it is only required in two Pages of the Blazor Server Side Application.

So my question is if it is possible to just load the in this Pages and not directly in _Hosts File. If yes how can I achieve this?

Upvotes: 0

Views: 537

Answers (1)

enet
enet

Reputation: 45764

Yes, it is possible in .Net 5.0 Read here

See this for an introduction and code samples

See this answer

Upvotes: 1

Related Questions