I want to display multi dimentional ko observable array data in html. But, i didn't get output.
My code :
<!-- ko if: ($parent.cust_opt_avail() === 1) -->
<!-- ko foreach: $parent.customVal() -->
<div class="product-custom-option-select">
<p class="options-label" data-bind="text:key"></p>
<p class="options-label" data-bind="text:custom_option_select_text"></p>
</div>
<!-- /ko -->
<!-- /ko -->
cust_opt_avail() is ko observable variable.
customVal is ko observable array.
output of customVal is :
I want to display custom_option_select_text and display key name on first p tag.
How to do it ?
Expected Result :
please help me.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…