File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ Providers are objects that provide (create) instances of services and expose con
6060that can be used to control the creation and runtime behavior of a service. In case of the `$route`
6161service, the `$routeProvider` exposes APIs that allow you to define routes for your application.
6262
63+ <div class="alert alert-warning">
64+ **Note:** Providers can only be injected into `config` functions. Thus you could not inject
65+ `$routeProvider` into `PhoneListCtrl`.
66+ </div>
67+
6368Angular modules solve the problem of removing global state from the application and provide a way
6469of configuring the injector. As opposed to AMD or require.js modules, Angular modules don't try to
6570solve the problem of script load ordering or lazy script fetching. These goals are totally independent and
You can’t perform that action at this time.
0 commit comments