Cool! This brings us to the end of the chapter. We learned about the importance and advantages of implementing services in our application. We also learned about how to consume services in components.
However, instantiating MovieService directly is a bad approach. Components need not know how to instantiate the services; their only purpose is to know how to consume the services. Services also enable the components to tightly couple with the type of MovieServices and their way of instantiating. This is unacceptable; the components should be loosely coupled as far as possible.
In the next chapter, we will discuss injecting services into components using Dependency Injections, which enable us to have loosely coupled components.