Skip to content

Instantly share code, notes, and snippets.

@laurisstepanovs
Created July 30, 2023 12:06
Show Gist options
  • Save laurisstepanovs/9b14a5fe0a4d18b4ead60569185524c3 to your computer and use it in GitHub Desktop.
Save laurisstepanovs/9b14a5fe0a4d18b4ead60569185524c3 to your computer and use it in GitHub Desktop.
Example.razor
...
<script suppress-error="BL9992" src='@KTTheme.GetAssetPath("plugins/custom/datatables/datatables.bundle.js")'></script>
<script suppress-error="BL9992" src='@KTTheme.GetAssetPath("js/custom/apps/ecommerce/catalog/products.js")'></script>
@using Starterkit._keenthemes.libs;
@inject IKTTheme KTTheme;
@inject IJSRuntime JS;
@code {
protected override async Task OnAfterRenderAsync(bool firstRender) {
await JS.InvokeVoidAsync("KTAppEcommerceProducts.init");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment