wired up JavaScript support in Module Creator templates
This commit is contained in:
15
Oqtane.Server/wwwroot/Modules/Templates/External/Client/Interop.cs
vendored
Normal file
15
Oqtane.Server/wwwroot/Modules/Templates/External/Client/Interop.cs
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
using Microsoft.JSInterop;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace [Owner].[Module]
|
||||
{
|
||||
public class Interop
|
||||
{
|
||||
private readonly IJSRuntime _jsRuntime;
|
||||
|
||||
public Interop(IJSRuntime jsRuntime)
|
||||
{
|
||||
_jsRuntime = jsRuntime;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user