You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Data
{
public bool IsRenewalInvoice { get; set; }
public List<InvoiceLine> InvoiceLines { get; set; }
}
public class InvoiceLine
{
public string Description { get; set; }
public string Cost { get; set; }
}
However, I am getting a HandlebarsUndefinedBindingException: 'Description is undefined'. I have also tried using this and InvoiceLine before the property name of the list item as below but that also does not work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have just started using Handlebars.Net. I have a template containing:
My data object is as per below:
However, I am getting a HandlebarsUndefinedBindingException: 'Description is undefined'. I have also tried using this and InvoiceLine before the property name of the list item as below but that also does not work.
How do I get this to work?
Also, if the list is nested in another object within Data - Is it still possible to access the properties of the list item?
Beta Was this translation helpful? Give feedback.
All reactions