Angular Service any code that touches outside of the boundaries of a component should exist in a service this includes inter-component communication,  unless there's a parent-child relationship and API calls of any kind and any code that cache or retrieve  data from a cookie or the browser's localStorage. This is a critical architectural pattern that keeps your  application maintainable in