17 lines
580 B
TypeScript
17 lines
580 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { LinksComponent } from './links/links.component';
|
|
import { TasmotaControlComponent } from './tasmota-control/tasmota-control.component';
|
|
|
|
const routes: Routes = [
|
|
{ path: '', redirectTo: '/list-links', pathMatch: 'full'},
|
|
{ path: 'list-links', component:LinksComponent },
|
|
{ path: 'steckdosen', component:TasmotaControlComponent}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes, {useHash: true})],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule { }
|