-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
I have Blazor Server Side app. where I have added JavaScript and CSS Libraries for Metronic Bootstrap Template. The template is fully loaded when I run the app. But the JavaScript is not responding. for example when I click on Side Menu (Arrow Icon) or Expand the Lists, or click on User Profile Drop down from Header. All those sections are not working. But when I comment out this JavaScript library (blazor.server.js), template start working, but other Blazor Components don't work properly (e.g. Counter Component button click don't respond), As soon as I uncomment the (blazor.server.js) reference the Razor Component start working and again my JavaScript for template don't response as I mentioned in beginning.
I have placed css files reference in _Host.cshtml section.
In Body added
Then in before closing body tag added
and then other JavaScript reference libraries.
In My MainLayout.razor page I have
`
<div class="page d-flex flex-row flex-column-fluid">
<MainSidebar />
<div class="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
<MainHeader />
@Body
<MainFooter />
</div>
</div>
</div>`
for more details can also visit the following link:
https://stackoverflow.com/questions/68745702/blazor-server-app-javascript-libraries-not-working-metronic-template