Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f375684

Browse files
alirezamirianNarretz
authored andcommitted
docs(guide/Conceptual Overview): clarify service instantiation sentence
Change a sentence which describes how currencyConverter service is instantiated. Closes #12924
1 parent e1f4b35 commit f375684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/concepts.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ Now that Angular knows of all the parts of the application, it needs to create t
277277
In the previous section we saw that controllers are created using a factory function.
278278
For services there are multiple ways to define their factory
279279
(see the {@link services service guide}).
280-
In the example above, we are using a function that returns the `currencyConverter` function as the factory
281-
for the service.
280+
In the example above, we are using an anonymous function as the factory function for `currencyConverter` service.
281+
This function should return the `currencyConverter` service instance.
282282

283283
Back to the initial question: How does the `InvoiceController` get a reference to the `currencyConverter` function?
284284
In Angular, this is done by simply defining arguments on the constructor function. With this, the injector

0 commit comments

Comments
 (0)