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

Commit 5078c76

Browse files
greggunnerNarretz
authored andcommitted
docs(guide/Interpolation): fix code example
The function getForm is receiving a variable from the view and should be using that. Closes #14142
1 parent 30a7e3a commit 5078c76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/interpolation.ngdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ You should instead delegate the computation of complex expressions to the scope,
124124
```
125125

126126
```js
127-
function getForm() {
128-
return $scope['form' + $index];
127+
function getForm(index) {
128+
return $scope['form' + index];
129129
}
130130
```
131131

0 commit comments

Comments
 (0)