What is the best practice to apply in a monorepo , in terms of handling http request in all...

Discussão em 'Angular' iniciado por Pouya Babaie, Abril 22, 2025.

  1. Pouya Babaie

    Pouya Babaie Guest

    I'm working on an angular project which is a monorepo , containing several application. in all of these apps , we are using http client. i found out that each project is using an internal service for handling http request. for example there are 3 projects , landing , app , Backoffice . all of them have a service called api.service.ts and all of them are the same. My question is , Is it good to write a angular library and put the service there , and make all other projects use that service in the library? or it's not recommended?

    i saw that in every other projects , the code is the same. it's like duplicating code just to use it in another module.

    Continue reading...

Compartilhe esta Página