Using angular.js, I have a dynamic list of form fields I want to display to the user for editing (and later submission):
var app = angular.module(\'app\', []
You need to use an array of objects. Hopefully you can rework your model:
$scope.fields = [ {label: "foo", value: "foov"}, {label: "bar", value: "barv"}, {label: "baz", value: "bazv"} ]; {{field.label}}: Fiddle. 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Fiddle.