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

17 lines
580 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-02-13 17:34:08 +01:00
import { LinksComponent } from './links/links.component';
import { TasmotaControlComponent } from './tasmota-control/tasmota-control.component';
2024-01-29 07:27:26 +01:00
2024-01-29 19:42:34 +01:00
const routes: Routes = [
2024-02-13 17:34:08 +01:00
{ path: '', redirectTo: '/list-links', pathMatch: 'full'},
{ path: 'list-links', component:LinksComponent },
{ path: 'steckdosen', component:TasmotaControlComponent}
2024-01-29 19:42:34 +01:00
];
2024-01-29 07:27:26 +01:00
@NgModule({
2024-02-13 17:34:08 +01:00
imports: [RouterModule.forRoot(routes, {useHash: true})],
2024-01-29 07:27:26 +01:00
exports: [RouterModule]
})
export class AppRoutingModule { }