Files
new-landing-page-homenas/src/app/app-routing.module.ts
T

17 lines
588 B
TypeScript
Raw Normal View History

2024-01-29 07:27:26 +01:00
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
2024-01-29 19:42:34 +01:00
import { ListLinksComponent } from './list-links/list-links.component';
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
2024-01-29 07:27:26 +01:00
2024-01-29 19:42:34 +01:00
const routes: Routes = [
{ path: '', redirectTo: 'list-links', pathMatch: 'full' },
{ path: 'list-links', component:ListLinksComponent },
{ path: '**', component: PageNotFoundComponent }
];
2024-01-29 07:27:26 +01:00
@NgModule({
2024-01-29 19:42:34 +01:00
imports: [RouterModule.forRoot(routes, { useHash: true })],
2024-01-29 07:27:26 +01:00
exports: [RouterModule]
})
export class AppRoutingModule { }