Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

112
Visualizações
Angular Global Service recreated every time I manually switch between components

I have a service called GlobalserviceService and two components FirstComponent available under the path: http://localhost:4200/first/app and SecondComponent available under the path http://localhost:4200/second/app. Each time I type new URL to switch from current component to the other one, my GlobalserviceService gets recreated (constructo is called) so I lose all data stored previously in it. Is there a way to prevent that from happening? The Sample app is stored in git repository https://github.com/rejkid/test-app.git

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda