Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 933f683

Browse files
committed
post-post-review updates
1 parent dbcff2d commit 933f683

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

public/docs/dart/latest/guide/dependency-injection.jade

+5-7
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,11 @@ block dart-map-alternative
126126
The Dart [cascade notation][cascade] (`..`) provides a convenient means of initializing
127127
a configuration object.
128128

129-
Use of the cascaded initialization idiom
130-
prevents us from defining our configuration object instance as `const`.
131-
As a consequence, we cannot declare a [value provider](#value-provider),
132-
but a [factory provider](#factory-provider) does the trick.
133-
134-
We illustrate this below by providing and injecting the configuration object in our
135-
top-level `AppComponent`:
129+
If we use cascades, the configuration object can't be declared `const` and
130+
we can't use a [value provider](#value-provider).
131+
A solution is to use a [factory provider](#factory-provider).
132+
We illustrate this next. We also show how to provide and inject the
133+
configuration object in our top-level `AppComponent`:
136134

137135
[cascade]: https://www.dartlang.org/docs/dart-up-and-running/ch02.html#cascade
138136

0 commit comments

Comments
 (0)