From c2df57594ef7e29ab49f943465aa15258415b220 Mon Sep 17 00:00:00 2001 From: Ashish Kamble Date: Tue, 5 Mar 2019 11:52:06 +0530 Subject: [PATCH] docs(di): update docs content --- docs/content/guide/di.ngdoc | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/content/guide/di.ngdoc b/docs/content/guide/di.ngdoc index f0ac64c8c290..9a8ac08e1ae4 100644 --- a/docs/content/guide/di.ngdoc +++ b/docs/content/guide/di.ngdoc @@ -284,6 +284,7 @@ Here is an example of using the injector service: var myModule = angular.module('myModule', []); ``` +Notice that `myModule` depends upon no other modules as the second parameter is an empty array. Teach the injector how to build a `greeter` service. Notice that `greeter` is dependent on the `$window` service. The `greeter` service is an object that contains a `greet` method.