除了呈现对象中属性的值外,我还希望将属性名称作为标签呈现。有没有办法ng-repeat是吗?例如:
ng-repeat
<ul> <li ng-repeat="option in data">{{propertyName}}: {{option}}</li> </ul>
可能会吐出这样的东西:
<ul> <li>Name: John</li> <li>Phone: (123) 456-7890</li> <li>Country: England</li> </ul>
相似问题