AngularJS版本 : AngularJS v1.4.0-rc.1html>
angular.module('dynamicTemplate', []).controller('PhoneListCtrl',function($scope) {
$scope.phones = [
{
"name": "Nexus S",
"snippet": "Fast just got faster with Nexus S."
},
{
"name": "Motorola XOOM with Wi-Fi",
"snippet": "The Next, Next Generation tablet."
},
{
"name": "MOTOROLA XOOM",
"snippet": "The Next, Next Generation tablet."
}
];
});
`phone`.`name`
`phone`.`snippet`
Total number of phones: `phones`.`length`
row number |
---|
{{'row number : '+(i+1)}} |