title: Angular 8 how to use Animations transitions and triggers in a service.ts file
body: <p>Angular 8 how to use Animations transitions and triggers in a service.ts file?
  Here is the reference of angular animation that is working ok in the component
  but I want to use this in a service that is imported in component flie.</p>
  <p><a href="https://angular.io/guide/transition-and-triggers" rel="nofollow noreferrer">https://angular.io/guide/transition-and-triggers</a></p>