-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
556756f
commit d110ec2
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 8 additions & 1 deletion
9
demo/aspnetcore6.0/v4/BlazorTransitionableRouteDemoServer/App.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
demo/aspnetcore6.0/v4/BlazorTransitionableRouteDemoServer/Shared/MyAuthorizeRouteView.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@if (Transition?.RouteData != null) | ||
{ | ||
<CascadingValue Value="Transition"> | ||
<AuthorizeRouteView RouteData="@Transition.RouteData" DefaultLayout="@DefaultLayout"></AuthorizeRouteView> | ||
</CascadingValue> | ||
} | ||
|
||
@code { | ||
[CascadingParameter] | ||
public Transition Transition { get; set; } | ||
|
||
[Parameter] | ||
public Type DefaultLayout { get; set; } | ||
} |