Skip to content

Instantly share code, notes, and snippets.

@EdCharbeneau
Created November 1, 2019 17:22
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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; }
}
@garyray-k
Copy link

Simplicity is beauty!

@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