Computed Properties
Preparing the View-Model
{
"Html": "/HelloWorld/PersonJson.html",
"FirstName$": "",
"LastName$": "",
"SaveTrigger$": 0,
"FullName": ""
}Compute in Code-Behind
partial class PersonJson : Json
{
public string FullName => $"{FirstName} {LastName}";
void Handle(Input.SaveTrigger action)
{
Transaction.Commit();
}
}Display the Computed Property
Result

Last updated