Skip to content

Instantly share code, notes, and snippets.

@explorer14
Created July 8, 2020 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save explorer14/09961a9127367d9e634d1f30fd08026e to your computer and use it in GitHub Desktop.
Save explorer14/09961a9127367d9e634d1f30fd08026e to your computer and use it in GitHub Desktop.
@page "/budget"
@*Inject services into views*@
@inject ITraxpenseApiClient traxpenseApi
<!--view stuff-->
<!-- C# code stuff -->
@code {
// bind this to the view
private CurrentBudget currentBudget;
protected override async Task OnInitializedAsync()
{
currentBudget = await traxpenseApi.GetCurrentBudget();
}
// etc. etc..
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment