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
  • 53,580
  • 14
  • 141
  • 167
Adrian Brand
  • 20,384
  • 4
  • 39
  • 60

0 Answers0