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

Commit 30a7e3a

Browse files
mattjanssenNarretz
authored andcommitted
docs(guide/Components): add missing $ctrl
docs(guide/Components): add missing $ctrl The new component example does not work as is. It needs a missing reference to $ctrl. Closes #14138 Closes #14143
1 parent a6afa78 commit 30a7e3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/guide/component.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ components should follow a few simple conventions:
133133
For a deletion, that means the component doesn't delete the `hero` itself, but sends it back to
134134
the owner component via the correct event.
135135
```html
136-
<button ng-click="$ctrl.onDelete({hero: hero})">Delete</button>
136+
<button ng-click="$ctrl.onDelete({hero: $ctrl.hero})">Delete</button>
137137
```
138138
- That way, the parent component can decide what to do with the event (e.g. delete an item or update the properties)
139139
```js

0 commit comments

Comments
 (0)