Implementing js-script into component in Blazor

Viewed 96

Can you please explain how to integrate the script like this:

<script type="text/javascript" charset="utf-8" async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A1d532a41650954ba7f9ebe8975d9ebff1be172d29fb570d1b8c94fb9bfb45c66&amp;width=500&amp;height=720&amp;lang=ru_RU&amp;scroll=true"></script>

I want to have this script in the Blazor's component because I need to show the map on one page

1 Answers

You need to add this script tag in Page/_Layout.cshtml file in-order to use this script.

Related