1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular client side dynamic route redirect to wildcard route on page reload

Discussão em 'Angular' iniciado por Shivansh Chouhan, Setembro 25, 2024.

  1. In angular app I have hundreds of dynamic routes. Which are added in route config after an API call. But when I reload the same page with dynamic route, browser send the request to server and return as 404 not found.

    Client side route are not resolved at server side.

    for adding dynamic route I am using

    fetch('./assets/static-json/all-schools.json').then()

    which is an async call in App_Initializer_service.

    I want whenever app load in browser everytime app detects the json file changes. import * as data from '/assets/static-json/all-schools.json';

    compiled once and then not detecting changes

    Continue reading...

Compartilhe esta Página