Skip to content

Commit 2e90cdc

Browse files
committed
docs(dependency injecton): rewrite
1 parent 581f93a commit 2e90cdc

12 files changed

+244
-290
lines changed

docs/content/guide/dev_guide.di.ngdoc

-32
This file was deleted.

docs/content/guide/dev_guide.di.understanding_di.ngdoc

-193
This file was deleted.

docs/content/guide/dev_guide.di.using_di_controllers.ngdoc

-52
This file was deleted.

docs/content/guide/dev_guide.mvc.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The MVC pattern greatly summarized:
1212
* Separate applications into distinct presentation, data, and logic components
1313
* Encourage loose coupling between these components
1414

15-
Along with {@link dev_guide.services services} and {@link dev_guide.di dependency injection}, MVC
15+
Along with {@link dev_guide.services services} and {@link di dependency injection}, MVC
1616
makes angular applications better structured, easier to maintain and more testable.
1717

1818
The following topics explain how angular incorporates the MVC pattern into the angular way of

docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ needed for a single view.
4747

4848
The most common way to keep controllers slim is by encapsulating work that doesn't belong to
4949
controllers into services and then using these services in controllers via dependency injection.
50-
This is discussed in the {@link dev_guide.di Dependency Injection} {@link dev_guide.services
50+
This is discussed in the {@link di Dependency Injection} {@link dev_guide.services
5151
Services} sections of this guide.
5252

5353
Do not use controllers for:

docs/content/guide/dev_guide.services.creating_services.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ to write your own custom services. To do this you begin by registering a service
77
with a module either via the {@link api/angular.module Module#factory api} or directly
88
via the {@link api/angular.module.AUTO.$provide $provide} api inside of module config function.
99

10-
All angular services participate in {@link dev_guide.di dependency injection (DI)} by registering
10+
All angular services participate in {@link di dependency injection (DI)} by registering
1111
themselves with Angular's DI system (injector) under a `name` (id) as well as by declaring
1212
dependencies which need to be provided for the factory function of the registered service. The
1313
ability to swap dependencies for mocks/stubs/dummies in tests allows for services to be highly
@@ -49,7 +49,7 @@ create this instance when called.
4949
# Dependencies
5050

5151
Services can not only be depended upon, but also have its own dependencies. These can be specified
52-
as arguments of the factory function. {@link dev_guide.di.understanding_di Read more} about the DI
52+
as arguments of the factory function. {@link di.understanding_di Read more} about the DI
5353
in Angular and the use of array notation and $inject property to make DI annotation
5454
minification-proof.
5555

docs/content/guide/dev_guide.services.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Services are a feature that angular brings to client-side web apps from the server side, where
66
services have been commonly used for a long time. Services in angular apps are substitutable
7-
objects that are wired together using {@link dev_guide.di dependency injection (DI)}. Services are
8-
most often used with {@link dev_guide.di dependency injection}, also a key feature of angular apps.
7+
objects that are wired together using {@link di dependency injection (DI)}. Services are
8+
most often used with {@link di dependency injection}, also a key feature of angular apps.
99

1010

1111
## Related Topics

docs/content/guide/dev_guide.services.understanding_services.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ above). You can also create your own custom services.
2525

2626
## Related Topics
2727

28-
* {@link dev_guide.di About Angular Dependency Injection}
28+
* {@link di About Angular Dependency Injection}
2929
* {@link dev_guide.services.creating_services Creating Angular Services}
3030
* {@link dev_guide.services.managing_dependencies Managing Service Dependencies}
3131
* {@link dev_guide.services.testing_services Testing Angular Services}

docs/content/guide/dev_guide.unit-testing.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ myClass.doWork();
164164

165165
Notice that no global variables were harmed in the writing of this test.
166166

167-
Angular comes with {@link dev_guide.di dependency-injection} built in which makes the right thing
167+
Angular comes with {@link di dependency-injection} built in which makes the right thing
168168
easy to do, but you still need to do it if you wish to take advantage of the testability story.
169169

170170
## Controllers

0 commit comments

Comments
 (0)