Skip to content

Commit

Permalink
Upgraded to preview 9
Browse files Browse the repository at this point in the history
  • Loading branch information
dodyg committed Sep 6, 2019
1 parent 3b9a29f commit 3a72148
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions projects/blazor-ss/JsIntegration/Components/App.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<CascadingAuthenticationState>
<Router AppAssembly="typeof(Startup).Assembly">
<NotFoundContent>
<p>Sorry, there's nothing at this address.</p>
</NotFoundContent>
</Router>
</CascadingAuthenticationState>
<Router AppAssembly="typeof(Program).Assembly">
<Found Context="routeData">
<RouteView RouteData="routeData" />
</Found>
<NotFound>
<h1>Page not found</h1>
<p>Sorry, but there's nothing here!</p>
</NotFound>
</Router>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ We will call alert, confirm and console.log in this sample. Please click the but

@code
{
protected override async Task OnInitializedAsync()
protected override async Task OnAfterRenderAsync(bool firstRender)
{
await JS.InvokeAsync<object>("console.log", "hello world console");
await JS.InvokeAsync<object>("alert", $"Hello ");
Expand Down
2 changes: 1 addition & 1 deletion projects/blazor-ss/JsIntegration/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void Configure(IApplicationBuilder app, IHostEnvironment env)
{
routes.MapRazorPages();
routes.MapFallbackToPage("/Index");
routes.MapBlazorHub<App>("app");
routes.MapBlazorHub();
});
}
}
Expand Down

0 comments on commit 3a72148

Please sign in to comment.