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
60
60
that can be used to control the creation and runtime behavior of a service. In case of the `$route`
61
61
service, the `$routeProvider` exposes APIs that allow you to define routes for your application.
62
62
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
+
63
68
Angular modules solve the problem of removing global state from the application and provide a way
64
69
of configuring the injector. As opposed to AMD or require.js modules, Angular modules don't try to
65
70
solve 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