mirror of
https://github.com/PacktPublishing/Web-Development-with-Blazor-Second-Edition.git
synced 2025-12-06 05:32:03 +01:00
8 lines
161 B
JavaScript
8 lines
161 B
JavaScript
|
|
|
|||
|
|
window.callnetfromjs = () => {
|
|||
|
|
DotNet.invokeMethodAsync('Components', 'NameOfTheMethod')
|
|||
|
|
.then(data => {
|
|||
|
|
alert(data);
|
|||
|
|
});
|
|||
|
|
};
|