Angular Service Workers Routes

1k views Asked by At

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"
                }
            }
        }
    }
0

There are 0 answers