mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-01 22:37:41 +08:00
docs(tutorial/step-04): actually add age property to the code example
Closes #4400
This commit is contained in:
committed by
Pete Bacon Darwin
parent
b76ed0b28c
commit
4696af79ec
@@ -70,11 +70,14 @@ var phonecatApp = angular.module('phonecatApp', []);
|
||||
phonecatApp.controller('PhoneListCtrl', function PhoneListCtrl($scope) {
|
||||
$scope.phones = [
|
||||
{'name': 'Nexus S',
|
||||
'snippet': 'Fast just got faster with Nexus S.'},
|
||||
'snippet': 'Fast just got faster with Nexus S.',
|
||||
'age': 1},
|
||||
{'name': 'Motorola XOOM™ with Wi-Fi',
|
||||
'snippet': 'The Next, Next Generation tablet.'},
|
||||
'snippet': 'The Next, Next Generation tablet.',
|
||||
'age': 2},
|
||||
{'name': 'MOTOROLA XOOM™',
|
||||
'snippet': 'The Next, Next Generation tablet.'}
|
||||
'snippet': 'The Next, Next Generation tablet.',
|
||||
'age': 3}
|
||||
];
|
||||
|
||||
$scope.orderProp = 'age';
|
||||
|
||||
Reference in New Issue
Block a user