Replies: 3 comments
|
Could you give an example of what kind of facilities you mean? Razor pages are not interactive, so the only thing you usually do in here is to pass some initial data to the component. |
0 replies
@page "/"
@using Hydro
@{
Layout = "/Pages/Shared/_Layout.cshtml";
var message = "Hello World";
}
<message text="@message"></message>
<button onclick="??">Modify Message</button>Is there any way to interact with hydro component via JavaScript from the host page? |
0 replies
|
The interactions are possible only inside the components. The host pages are used to render these components. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The documentation focus on component to component interactions but I can't find what kind of facilities are available between host RazorPages with a hydro component.
In above code we are just passing a Razor variable statically. Is there anything else available?
All reactions