10000 docs(tutorial/step07): explain injecting providers in callout · olostan/angular.js@6df2b8a · GitHub
[go: up one dir, main page]

Skip to content

Commit 6df2b8a

Browse files
committed
docs(tutorial/step07): explain injecting providers in callout
1 parent 55998a6 commit 6df2b8a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/content/tutorial/step_07.ngdoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ Providers are objects that provide (create) instances of services and expose con
6060
that can be used to control the creation and runtime behavior of a service. In case of the `$route`
6161
service, 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+
6368
Angular modules solve the problem of removing global state from the application and provide a way
6469
of configuring the injector. As opposed to AMD or require.js modules, Angular modules don't try to
6570
solve the problem of script load ordering or lazy script fetching. These goals are totally independent and

0 commit comments

Comments
 (0)
0