Wire up a test case for full routing
This commit is contained in:
@@ -1,7 +1,24 @@
|
||||
@page "/"
|
||||
@rendermode InteractiveServer
|
||||
|
||||
<PageTitle>Home</PageTitle>
|
||||
|
||||
<h1>Hello, world!</h1>
|
||||
|
||||
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