diff options
| -rw-r--r-- | docs/content/guide/di.ngdoc | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/docs/content/guide/di.ngdoc b/docs/content/guide/di.ngdoc index ba54ff8d..83c3e9b7 100644 --- a/docs/content/guide/di.ngdoc +++ b/docs/content/guide/di.ngdoc @@ -67,11 +67,11 @@ Here is an example of using  the injector service.            $window.alert(text);          }        }; -    }). -     +    }); +    // New injector is created from the module.     // (This is usually done automatically by angular bootstrap) -  var injector = angular.injector('myModule'); +  var injector = angular.injector(['myModule', 'ng']);    // Request any dependency from the injector    var greeter = injector.get('greeter'); | 
