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

How can I make a URL non-modifiable on Angular?

Discussão em 'Angular' iniciado por Mel Benavides, Outubro 3, 2024.

  1. Ok, so there's this project i'm working on where we have a particular page (lets say localhost:XXXX/notification-page) and we're looking for it to be the only URL where you can get there, whenever we change the url it sends you to the same exact page (the notification-page one).

    I'm pretty new to Angular (been working with it for about three days from scratch), so... How could I fix that?

    So far, my app-routing.module.ts document looks like this:

    import { NgModule } from '@angular/core';
    import { RouterModule, Routes } from '@angular/router';

    const routes: Routes = [];

    @NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule]
    })
    export class AppRoutingModule { }

    Continue reading...

Compartilhe esta Página