We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 720492d commit 8955c62Copy full SHA for 8955c62
app/scripts/controllers/master-detail.js
@@ -122,7 +122,7 @@ angular.module('demo')
122
// new up the model
123
$scope.masterDetailCtrl.collection.addMonster('Joe', 'exploding feces').then(function() {
124
125
- alert('OMG you created a monster named: ' + $scope.masterDetailCtrl.collection.last().get('name'));
+ alert('OMG you created a monster named: ' + $scope.masterDetailCtrl.collection.first().get('name'));
126
127
});
128
0 commit comments