Andre Lopes
1 min readNov 10, 2019

--

I think there’s nothing wrong in calling multiple services in a controller.

The purpose of a service is that to abstract and add reusability to your code.

One other solution that could be valid is to encapsulate this logic that uses two services in a new service. Than you would just need to add this new service to the controller.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Written by Andre Lopes

Full-stack developer @ Tesla | Public Speaker | AWS | Terraform | Serverless | Gamer | Eternal Geek 🤓

Responses (1)

Write a response