web-remote/src/app/app.routing.ts
2023-02-16 16:29:08 +00:00

34 lines
1.6 KiB
TypeScript

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ServiceComponent } from './components/service/service.component';
import { AlertComponent } from './components/alert/alert.component';
import { SearchComponent } from './components/search/search.component';
import { SlidesComponent } from './components/slides/slides.component';
import { ChordViewComponent } from './components/chord-view/chord-view.component';
import { MainViewComponent } from './components/main-view/main-view.component';
import { StageViewComponent } from './components/stage-view/stage-view.component';
import { ThemesComponent } from './components/themes/themes.component';
import { LowerThirdComponent } from './components/lower-third/lower-third.component';
import { SettingsComponent } from './components/settings/settings.component';
const routes: Routes = [
{ path: '', redirectTo: '/service', pathMatch: 'full' },
{ path: 'service', component: ServiceComponent },
{ path: 'slides', component: SlidesComponent },
{ path: 'alerts', component: AlertComponent },
{ path: 'search', component: SearchComponent },
{ path: 'chords', component: ChordViewComponent },
{ path: 'main', component: MainViewComponent },
{ path: 'stage', component: StageViewComponent },
{ path: 'themes', component: ThemesComponent},
{ path: 'lower-third', component: LowerThirdComponent},
{ path: 'settings', component: SettingsComponent}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }