In this example you will build
service services. The purpose is to give a chance to see how each can be implemented, as well as the perspective of using multiple types of services in your applications.
The code in Listing 10.1 shows an example of integrating
service services into a single module. The example is very basic and easy to follow. Notice that
repString are injected into and used in the
Lines 4–13 implement a
factory service that returns a function that censors a string. Notice that line 26 calls the
factory directly to censor the string.
Lines 14–25 implement ...