7

I have built an app with Angular Service worker and it is all working well offline except for the routes. If I go to the base url the app loads fine but if I go to any of the other routes while offline I get an offline error.

My ngsw-manifest.json looks like

    {
        "routing": {
            "index": "/index.html",
            "routes": {
                "/": {
                "match": "exact"
                },
                "/home": {
                "match": "exact"
                },
                "/paramaterlessroutes": {
                "match": "exact"
                },
                "/routeswithparamaters": {
                "match": "prefix"
                }
            }
        }
    }
Jeff Posnick
  • 50,346
  • 14
  • 127
  • 155
Adrian Brand
  • 17,318
  • 4
  • 30
  • 54

0 Answers0