From e8ded01cf5a79aa2aa598670cd3ed88641c2c362 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 12 Jun 2012 10:01:43 -0700 Subject: doc($log): correct non-working example --- src/ng/log.js | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) (limited to 'src/ng/log.js') diff --git a/src/ng/log.js b/src/ng/log.js index 847d29ae..1b552da8 100644 --- a/src/ng/log.js +++ b/src/ng/log.js @@ -12,27 +12,25 @@ * The main purpose of this service is to simplify debugging and troubleshooting. * * @example - - - - - Reload this page with open console, enter text and hit the log button... - Message: - - log - warn - info - error - - - - - + + + function LogCtrl($scope, $log) { + $scope.$log = $log; + $scope.message = 'Hello World!'; + } + + + + Reload this page with open console, enter text and hit the log button... + Message: + + log + warn + info + error + + + */ function $LogProvider(){ -- cgit v1.2.3
Reload this page with open console, enter text and hit the log button...