Skip to content

Commit

Permalink
docs(guide/Interpolation): fix code example
Browse files Browse the repository at this point in the history
The function getForm is receiving a variable from the view and should be using that.

Closes angular#14142
  • Loading branch information
greggunner authored and Narretz committed Feb 28, 2016
1 parent 30a7e3a commit 5078c76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/guide/interpolation.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ You should instead delegate the computation of complex expressions to the scope,
```

```js
function getForm() {
return $scope['form' + $index];
function getForm(index) {
return $scope['form' + index];
}
```

Expand Down

0 comments on commit 5078c76

Please sign in to comment.