Skip to content
Permalink
Browse files

docs(guide/component): fix fn parameter in example

The wrong field name was being passed into the `$ctrl.update` call in `heroDetail.html` resulting
in the wrong behavior (`name` was being updated instead of `location`)

Closes #13890
  • Loading branch information
DrDanRyan authored and Narretz committed Jan 29, 2016
1 parent ca5b27b commit db1180f3b36b0c6c73d1fc1a71611389d7742bf5
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/content/guide/component.ngdoc
@@ -269,7 +269,7 @@ it upwards to the heroList component, which updates it.
<hr>
<div>
Name: {{$ctrl.hero.name}}<br>
Location: <editable-field field-value="{{$ctrl.hero.location}}" field-type="text" on-update="$ctrl.update('name', value)"></editable-field><br>
Location: <editable-field field-value="{{$ctrl.hero.location}}" field-type="text" on-update="$ctrl.update('location', value)"></editable-field><br>
<button ng-click="$ctrl.onDelete({hero: $ctrl.hero})">Delete</button>
</div>
</file>
@@ -443,4 +443,4 @@ describe('component: heroDetail', function() {
});

});
```
```

0 comments on commit db1180f

Please sign in to comment.
You can’t perform that action at this time.