Basisimplementierung Songlist
This commit is contained in:
24
src/app/songs/songs-routing.module.ts
Normal file
24
src/app/songs/songs-routing.module.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import {NgModule} from '@angular/core';
|
||||
import {RouterModule, Routes} from '@angular/router';
|
||||
import {SongComponent} from "./song/song.component";
|
||||
import {SongListComponent} from "./song-list/song-list.component";
|
||||
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: SongListComponent,
|
||||
pathMatch: 'full'
|
||||
},
|
||||
{
|
||||
path: ':songId',
|
||||
component: SongComponent
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class SongsRoutingModule {
|
||||
}
|
||||
Reference in New Issue
Block a user