私の入力はオブジェクトline.product
にバインドされますが、typeahead
は製品とサプライヤのペアのリストを返しています。現在のps.product as ps.product.code for ps in getProductSupplierRefList($viewValue)
は、予想されるproduct
を返しません。angularjs bootstrap typehead返す子
<input ng-model="line.product"
class=" form-control"
typeahead="ps.product as ps.product.code for ps in getProductSupplierRefList($viewValue)"
typeahead-loading="isLoading"
typeahead-on-select="productSupplierSelected($item, line)"
typeahead-template-url="productSupplierRefList.html"/>
getProductSupplierRefList
通話のWEBAPIとProductSupplierRefModel
のリストを返す:
public class ProductSupplierRefModel
{
public ProductRefModel Product { get; set; }
public SupplierRefModel Supplier { get; set; }
}
どれ提案plsは?
どこgetProductSupplierRefList機能はありますか? –