Skip to content

Instantly share code, notes, and snippets.

@EdCharbeneau
Created November 1, 2019 17:22
Show Gist options
  • Save EdCharbeneau/b2f80921ede23d57185e262e02d68f81 to your computer and use it in GitHub Desktop.
Save EdCharbeneau/b2f80921ede23d57185e262e02d68f81 to your computer and use it in GitHub Desktop.
SpaLoader
@if (IsLoading)
{
@LoadingTemplate
}
else
{
@ContentTemplate
}
@code {
[Parameter] public bool IsLoading { get; set; }
[Parameter] public RenderFragment LoadingTemplate { get; set; }
[Parameter] public RenderFragment ContentTemplate { get; set; }
}
@EdCharbeneau
Copy link
Author

Simplicity is beauty!

Indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment