myApp.controller("myctrl", function($scope) {
$scope.fullname = [
{ fname: 'Mohil', age: '25', city: 'San Jose', zip:'95112' },
{ fname: 'Darshit', age: '25', city: 'San Jose', zip:'95112'},
{ fname: 'Suchita', age: '25', city: 'Santa Clara', zip:'95182'}
]
}
答案 0 :(得分:1)
HTML
$scope.fullname = [
{ fname: 'Mohil', age: '25', city: 'San Jose', zip:'95112' },
{ fname: 'Darshit', age: '25', city: 'San Jose', zip:'95112'},
{ fname: 'Suchita', age: '25', city: 'Santa Clara', zip:'95182'}
];
<强> app.js 强>
DBCC CHECKIDENT('<tablename>');
答案 1 :(得分:0)
这几乎就是转发器的设计目标,您可以像在JavaScript中的其他任何地方一样引用对象的属性。一个比另一个更简单的例子:
<ul>
<li ng-repeat="person in fullname">
{{ person.fname }} is {{ person.age }} years old.
</li>
</ul>
你在为什么努力奋斗?