12 lines
404 B
Plaintext
12 lines
404 B
Plaintext
<div class="supplied">You supplied: @SuppliedValue</div>
|
|
<div class="computed">I computed: @ComputedValue</div>
|
|
|
|
@functions {
|
|
public int SuppliedValue { get; set; }
|
|
|
|
// TODO: Instead of computing this in the getter, override OnParametersChanged or whatever
|
|
// it ends up being called when that's implemented on BlazorComponent
|
|
private int ComputedValue
|
|
=> SuppliedValue * 2;
|
|
}
|