diff options
Diffstat (limited to 'docs/content/guide/dev_guide.services.managing_dependencies.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.services.managing_dependencies.ngdoc | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/docs/content/guide/dev_guide.services.managing_dependencies.ngdoc b/docs/content/guide/dev_guide.services.managing_dependencies.ngdoc index 54d7a5d1..e6f6aa43 100644 --- a/docs/content/guide/dev_guide.services.managing_dependencies.ngdoc +++ b/docs/content/guide/dev_guide.services.managing_dependencies.ngdoc @@ -50,7 +50,7 @@ provided by Angular's web framework:   * @param {*} message Message to be logged.   */    function batchLogModule($provide){ -    $provide.factory('batchLog', ['$defer', '$log', function($defer, $log) { +    $provide.factory('batchLog', ['$timeout', '$log', function($timeout, $log) {        var messageQueue = [];        function log() { @@ -58,7 +58,7 @@ provided by Angular's web framework:            $log('batchLog messages: ', messageQueue);            messageQueue = [];          } -        $defer(log, 50000); +        $timeout(log, 50000);        }        // start periodic checking @@ -88,7 +88,7 @@ provided by Angular's web framework:  Things to notice in this example: -* The `batchLog` service depends on the built-in {@link api/ng.$defer $defer} and +* The `batchLog` service depends on the built-in {@link api/ng.$timeout $timeout} and  {@link api/ng.$log $log} services, and allows messages to be logged into the  `console.log` in batches.  * The `routeTemplateMonitor` service depends on the built-in {@link api/ng.$route | 
