我创建了一个本地文件db.json看起来像这样:本地服务器不填充NG重复
{
"project_topics": [
"- Any -",
"Access for disadvantaged",
"Agriculture, forestry and fisheries",
"Animal welfare",
"Energy and resources",
"Enhance social inclusion, equal opportunities and participation in sports",
"Enterprise, industry and SMEs (incl. entrepreneurship)",
"Entrepreneurial learning - entrepreneurship education",
"Environment and climate change"
]}
我想填充NG-重复输入和我做它像这样:
<label class="item item-select " id="findYourProject-select3">
<span class="input-label">type of project</span>
<select ng-repeat="topic in project_topics"></select>
</label>
输入未被填充。我应该考虑什么?
你试过了吗? –
我复制了一段错误的代码。我更新了我的问题。 – NewLuckyProgramer
使用'ng-options' http://jsfiddle.net/2JWb2/5/ –