24 lines
402 B
Plaintext
24 lines
402 B
Plaintext
@page "/model/{id}"
|
|
|
|
@inject TemplateService Templates;
|
|
|
|
<TemplateFiller Grid=@Grid/>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public string Id { get; set; }
|
|
|
|
public TemplateGrid Grid { get; private set; } = default!;
|
|
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await base.OnInitializedAsync();
|
|
|
|
Grid = await Templates.Get(Id) ?? throw new ArgumentException();
|
|
}
|
|
|
|
|
|
}
|