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 #5875
This commit is contained in:
Joshua Flanagan 2014-01-18 10:13:44 -06:00 committed by Caitlin Potter
parent 756c52d6c1
commit 1028cfaa30

View file

@ -55,7 +55,7 @@ of which depend on other services that are provided by the Angular framework:
function log() {
if (messageQueue.length) {
$log('batchLog messages: ', messageQueue);
$log.log('batchLog messages: ', messageQueue);
messageQueue = [];
}
}