2017-06-27 45 views
0

我有我的刀片模板上的下拉列表,我想在頁面加載時填充。 我使用Laravel從數據庫獲取數據,這是在將輸出記錄到控制檯時返回結果的方式。 enter image description here從Laravel填充角度下拉

角碼我有我的網頁上是這樣的, enter image description here

雖然返回的值,我的下拉列表仍然是空的。有人可以幫助嗎? enter image description here

這裏是我的角度控制器, enter image description here

+0

請編輯您問題補充代碼塊,而不是圖像。 – Sajal

回答

0

ng-options應爲:

<select ng-model="cmbSchema" ng-options="t as t.table_schema for t in schemalist track by $index"> 

Documentation

+0

給出錯誤 – anandatheerthan

+0

錯誤是什麼? – Sajal