Closed mpicca1 closed 6 months ago
Hi, try this:
<StandaloneCodeEditor @ref="_editor" OnDidChangeModelContent="HandleInput">
@code
{
private string code = "";
private StandaloneCodeEditor _editor = null!;
private async Task HandleInput(ModelContentChangedEvent e)
{
code = await _editor.GetValue();
}
}
It works for me.
Duplicate of #55
Hello, how do I @bind-Value to this component? I want to link the data. Is there a way to data-bind the value to a string or a string property of an object?