Sir trevor as a service in Angular