I am going to override the minicart.html file using knockout for my custom code as below at the default file location is :
/var/www/html/magento226/pub/static/frontend/Magento/luma/en_US/Magento_Checkout/template/minicart/item/default.html
code
<!-- ko if: customracking.length -->
<div class="product customracking" data-mage-init='{"collapsible":{"openedState": "active", "saveState": false}}'>
<span data-role="title" class="toggle"><!-- ko text: 'Custom Racking Details' --><!-- /ko --></span>
<div data-role="content" class="content">
<strong class="subtitle"><!-- ko text: 'Custom Racking Details' --><!-- /ko --></strong>
<dl class="product customracking list">
<!-- ko foreach: { data: customracking as: 'custom' } -->
<dt class="label"><!-- ko text: custom.label --><!-- /ko --></dt>
<dd class="values">
<!-- ko if: Array.isArray(custom.value) -->
<span data-bind="html: custom.value.join('<br>')"></span>
<!-- /ko -->
<!-- ko ifnot: Array.isArray(custom.value) -->
<span data-bind="html: custom.value"></span>
<!-- /ko -->
</dd>
<!-- /ko -->
</dl>
</div>
</div>
<!-- /ko -->
Can anybody let me know how to solve this?
If anyone know, please let me help me out.
Thanks!