Basisimplementierung Songlist
This commit is contained in:
16
src/app/songs/services/song.service.ts
Normal file
16
src/app/songs/services/song.service.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Observable} from "rxjs";
|
||||
import {Song} from "../models/song";
|
||||
import {SongDataService} from "./song-data.service";
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class SongService {
|
||||
|
||||
constructor(private songDataService: SongDataService) {
|
||||
}
|
||||
|
||||
public list = (): Observable<Song[]> => this.songDataService.list();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user