From 6df2b8a968a61c3d2f22047dd1ac99091ef0c7ec Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Fri, 11 Oct 2013 16:34:02 -0700 Subject: docs(tutorial/step07): explain injecting providers in callout --- docs/content/tutorial/step_07.ngdoc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/content/tutorial/step_07.ngdoc') diff --git a/docs/content/tutorial/step_07.ngdoc b/docs/content/tutorial/step_07.ngdoc index 9f681fa6..ff209cef 100644 --- a/docs/content/tutorial/step_07.ngdoc +++ b/docs/content/tutorial/step_07.ngdoc @@ -60,6 +60,11 @@ Providers are objects that provide (create) instances of services and expose con that can be used to control the creation and runtime behavior of a service. In case of the `$route` service, the `$routeProvider` exposes APIs that allow you to define routes for your application. +
+**Note:** Providers can only be injected into `config` functions. Thus you could not inject +`$routeProvider` into `PhoneListCtrl`. +
+ Angular modules solve the problem of removing global state from the application and provide a way of configuring the injector. As opposed to AMD or require.js modules, Angular modules don't try to solve the problem of script load ordering or lazy script fetching. These goals are totally independent and -- cgit v1.2.3