mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
docs(tutorial/step-04): actually add age property to the code example
Closes #4400
This commit is contained in:
parent
b76ed0b28c
commit
4696af79ec
1 changed files with 6 additions and 3 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue