aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/cookbook/helloworld.ngdoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/cookbook/helloworld.ngdoc')
-rw-r--r--docs/content/cookbook/helloworld.ngdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/cookbook/helloworld.ngdoc b/docs/content/cookbook/helloworld.ngdoc
index e3d76d83..b6b5bcf7 100644
--- a/docs/content/cookbook/helloworld.ngdoc
+++ b/docs/content/cookbook/helloworld.ngdoc
@@ -5,8 +5,8 @@
<doc:example>
<doc:source>
<script>
- function HelloCntl() {
- this.name = 'World';
+ function HelloCntl($scope) {
+ $scope.name = 'World';
}
</script>
<div ng:controller="HelloCntl">