diff --git a/docs/content/guide/di.ngdoc b/docs/content/guide/di.ngdoc index ba54ff8d579..83c3e9b77f8 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');