Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d82380a

Browse files
committed
Fix LogCtrl in example per the comments on docs.angularjs.org.
1 parent 33ad2b4 commit d82380a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ng/log.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<doc:example>
1616
<doc:source>
1717
<script>
18-
function LogCtrl($log) {
19-
this.$log = $log;
20-
this.message = 'Hello World!';
18+
function LogCtrl($scope, $log) {
19+
$scope.$log = $log;
20+
$scope.message = 'Hello World!';
2121
}
2222
</script>
2323
<div ng-controller="LogCtrl">

0 commit comments

Comments
 (0)