0

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?

2
  • You want to add script tag in razor component ? Commented Nov 29, 2020 at 22:42
  • Yes that is the goal. Want to load JS to google Maps API just when required not on every page request (_Hosts): maps.google.com/maps/api/js?callback=initMap Commented Nov 30, 2020 at 15:41

1 Answer 1

1

Yes, it is possible in .Net 5.0 Read here

See this for an introduction and code samples

See this answer

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.