diff --git a/src/ng/log.js b/src/ng/log.js index 941d6b5f..ff4ec892 100644 --- a/src/ng/log.js +++ b/src/ng/log.js @@ -15,15 +15,16 @@ * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this. * * @example - + - function LogCtrl($scope, $log) { - $scope.$log = $log; - $scope.message = 'Hello World!'; - } + angular.module('logExample', []) + .controller('LogController', ['$scope', '$log', function($scope, $log) { + $scope.$log = $log; + $scope.message = 'Hello World!'; + }]); -
+

Reload this page with open console, enter text and hit the log button...

Message: