我在肥皂服務工件中添加了一個新屬性,用於存儲無限制的服務操作(它就像聯繫人或端點表)如何在WSO2 GREG的存儲中顯示屬性表?
我的問題是如何在Store中顯示屬性表?
我試圖edditing資產attributes.hbs把新的屬性這樣
<div class="es-col-lg-12 col-lg-12">
<h4>{{t "Operaciones del Servicio Web"}}</h4><hr>
{{#each this.attributes.operaciones_nombre }}
<div class="es-col-lg-12 col-lg-12 divrow">
<div class="col-lg-2"><b>{{t "Nombre"}} :</b></div>
<div class="col-lg-10">{{ this.attributes.operaciones_nombre}}</div>
</div>
{{/each}}
但問題是,它不顯示this.attributes.operaciones_nombre當它是#each內,即使我用this.attributes.operaciones_nombre。[0]只顯示第一個元素
爲什麼環路只有{{#each this.attributes.operaciones_nombre}}而不是{{#each this.attributes.operaciones}}工作?我需要在asset.js中定義它,以及我如何做到這一點?
您使用的是5.2.0嗎?下面的答案解決您的問題? – tkr