mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
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:
parent
756c52d6c1
commit
1028cfaa30
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = [];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue