Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
¿Cuál es la diferencia entre el alcance del manifiesto/start_url y el alcance de ServiceWorkerModule.register?

Estoy tocando el pwa en angular 11. Al implementar, noté que hay dos definiciones de alcance en pwa:

  1. en manifest.webmanifest , scope y start_url para definir qué alcance debe manejar ngsw-worker.js

    { ... "alcance": "./", "start_url": "./",

  2. en app.module.ts, otro alcance

    ServiceWorkerModule.register("ngsw-worker.js", { habilitado: entorno.producción, alcance : "./xxxxx/", estrategia de registro: "registrarse inmediatamente", })

¿Alguien podría decirme cuál es la diferencia entre ellos? bastante confundido cuál establecer como qué.

Mi aplicación es un spa pero se implementa en un subdominio como /xxxxx/, entonces, en este caso, ¿cómo debo configurarlo?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!