Is it possible to execute some logic(API call) before the angular router init?

Discussão em 'Angular' iniciado por Alex Spelt, Novembro 21, 2024.

  1. Alex Spelt

    Alex Spelt Guest

    I'm working on a multi-domain website. I want to change the default route URL based on the domain. Is that possible in angular without having a service or module check it and redirecting after Init?

    I want to store the default URL In the database behind an API call. The API call is already used for loading the right CSS and other side specific configurations. Which means I have to wait for the API call to finish first.

    Example:


    Kind regards, Alex

    Continue reading...

Compartilhe esta Página