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

Why angular routing adds hashtag # to the url

Discussão em 'Angular' iniciado por Toumi, Outubro 16, 2024.

  1. Toumi

    Toumi Guest

    Version Used

    Angular version : 7.10 @angular/router": "~7.2.0",

    The question is

    Why angular adds a hashTag to the url.

    Example case:

    const routes: Routes = [
    {
    path: 'aktion',
    component: AktionComponent
    }


    does match the url

    http://localhost:4200/aktion


    but does not match the url

    http://localhost:4200/#/aktion

    Continue reading...

Compartilhe esta Página