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

153
Visualizações
what the difference between manifest scope/start_url and ServiceWorkerModule.register scope?

I'm touching the pwa in angular 11 . When implementing , I noticed that there are two scope defination in pwa :

  1. in manifest.webmanifest , scope and start_url to define what scope the ngsw-worker.js should handle

    { ... "scope": "./", "start_url": "./",

  2. in app.module.ts , another scope

    ServiceWorkerModule.register("ngsw-worker.js", { enabled: environment.production, scope: "./xxxxx/", registrationStrategy: "registerImmediately", })

Could anyone tell me what the difference among them ? quite confused which one to set as what.

My application is a spa but deployed at a subdomain as /xxxxx/ so, in this case , How should I set?

about 4 years ago · Juan Pablo Isaza
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