From 38e29dc8115832d8db6d3e141d9114616994a5aa Mon Sep 17 00:00:00 2001 From: Eric Adams Date: Tue, 7 Jul 2015 17:47:02 -0400 Subject: [PATCH] Fixing angular.injector arguments list The original file included a code sample using `angular.injector(['myModule', 'ng'])` which appears to be incorrect when trying to retrieve anything attached to `myModule`. Reversing the args fixes this. --- docs/content/guide/di.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/guide/di.ngdoc b/docs/content/guide/di.ngdoc index c030ca32c801..9852695229d4 100644 --- a/docs/content/guide/di.ngdoc +++ b/docs/content/guide/di.ngdoc @@ -293,7 +293,7 @@ Create a new injector that can provide components defined in our `myModule` modu `greeter` service from the injector. (This is usually done automatically by angular bootstrap). ```js -var injector = angular.injector(['myModule', 'ng']); +var injector = angular.injector(['ng', 'myModule']); var greeter = injector.get('greeter'); ```