How do I bind a text when it is undefined? For example name is not available:
<table id="recordTbl" data-bind="visible: records().length > 0" class="table">
<thead>
<tr>
<th class="col-md-4">ID</th>
<th class="col-md-4">Name</th>
</tr>
</thead>
<tbody data-bind="foreach: records">
<tr>
<td data-bind="text: id"></td>
<td data-bind="text: name"></td>
</tr>
</tbody>
</table>
I get this error:
Uncaught ReferenceError: Unable to process binding "text: function (){return name }"
Message: name is not defined