diff --git a/docs/content/guide/interpolation.ngdoc b/docs/content/guide/interpolation.ngdoc index f991cfa74fba..6fb3f0e860a2 100644 --- a/docs/content/guide/interpolation.ngdoc +++ b/docs/content/guide/interpolation.ngdoc @@ -120,8 +120,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]; } ```