Wire up a test case for full routing
This commit is contained in:
@@ -1,7 +1,24 @@
|
|||||||
@page "/"
|
@page "/"
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
|
||||||
<PageTitle>Home</PageTitle>
|
<PageTitle>Home</PageTitle>
|
||||||
|
|
||||||
<h1>Hello, world!</h1>
|
<h1>Hello, world!</h1>
|
||||||
|
|
||||||
Welcome to your new app.
|
Welcome to your new app.
|
||||||
|
|
||||||
|
<button @onclick="pullData">@buttonText</button>
|
||||||
|
|
||||||
|
|
||||||
|
@code {
|
||||||
|
|
||||||
|
string buttonText = "Pull finance data";
|
||||||
|
|
||||||
|
async Task pullData(){
|
||||||
|
buttonText = "Do not refresh the page. The data is refreshing.";
|
||||||
|
await Task.Delay(1);
|
||||||
|
aiModule.PullData();
|
||||||
|
buttonText = "Refresh Completed";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user