Skip to content

Commit 94da576

Browse files
joshuaflanaganjamesdaily
authored andcommitted
docs(services): use $log service in example consistently with $log API
The $log provider returns an object and not a function, so this example, which appears to be using the $log provider, should call it as it would be called in a real-world application. Closes angular#5875
1 parent 6d3730d commit 94da576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/guide/dev_guide.services.managing_dependencies.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ of which depend on other services that are provided by the Angular framework:
5555

5656
function log() {
5757
if (messageQueue.length) {
58-
$log('batchLog messages: ', messageQueue);
58+
$log.log('batchLog messages: ', messageQueue);
5959
messageQueue = [];
6060
}
6161
}

0 commit comments

Comments
 (0)