Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit db1180f

Browse files
DrDanRyanNarretz
authored andcommitted
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
1 parent ca5b27b commit db1180f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/component.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ it upwards to the heroList component, which updates it.
269269
<hr>
270270
<div>
271271
Name: {{$ctrl.hero.name}}<br>
272-
Location: <editable-field field-value="{{$ctrl.hero.location}}" field-type="text" on-update="$ctrl.update('name', value)"></editable-field><br>
272+
Location: <editable-field field-value="{{$ctrl.hero.location}}" field-type="text" on-update="$ctrl.update('location', value)"></editable-field><br>
273273
<button ng-click="$ctrl.onDelete({hero: $ctrl.hero})">Delete</button>
274274
</div>
275275
</file>
@@ -443,4 +443,4 @@ describe('component: heroDetail', function() {
443443
});
444444

445445
});
446-
```
446+
```

0 commit comments

Comments
 (0)