Blazor components
What is the suggested way to include plugins JS and CSS files needed in a blazor component?
How do i alter the ones included by default?
Replies (1)
Hi,
To load JS or CSS files globally you can include them into Theme.Assets.Js and Theme.Assets.Css.
Right now the only available way to load js files on the page in our starterkit is by using script tag inside your page component.
<script src="path/to/your/js/file.js"></script> This is not good practice for Blazor but it is the only way that worked for our current js files. We are going to update our Js file and in the next release, we will move to a different script-loading approach.
Stay tuned for updates via
Regards,
Lauris Stepanovs,
Keenthemes Support Team