fix console log
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import {ChangeDetectionStrategy, Component, OnDestroy, OnInit} from '@angular/core';
|
import {ChangeDetectionStrategy, Component, OnDestroy, OnInit} from '@angular/core';
|
||||||
import {SongService} from '../services/song.service';
|
import {SongService} from '../services/song.service';
|
||||||
import {Song} from '../services/song';
|
import {Song} from '../services/song';
|
||||||
import {map, tap} from 'rxjs/operators';
|
import {map} from 'rxjs/operators';
|
||||||
import {combineLatest, Observable} from 'rxjs';
|
import {combineLatest, Observable} from 'rxjs';
|
||||||
import {fade} from '../../../animations';
|
import {fade} from '../../../animations';
|
||||||
import {ActivatedRoute} from '@angular/router';
|
import {ActivatedRoute} from '@angular/router';
|
||||||
@@ -21,7 +21,6 @@ export class SongListComponent implements OnInit, OnDestroy {
|
|||||||
public songs$: Observable<Song[]> | null = combineLatest([
|
public songs$: Observable<Song[]> | null = combineLatest([
|
||||||
this.activatedRoute.queryParams.pipe(map(_ => _ as FilterValues)),
|
this.activatedRoute.queryParams.pipe(map(_ => _ as FilterValues)),
|
||||||
this.activatedRoute.data.pipe(
|
this.activatedRoute.data.pipe(
|
||||||
tap(_ => console.log(_)),
|
|
||||||
map(data => data.songList as Song[]),
|
map(data => data.songList as Song[]),
|
||||||
map(songs => songs.sort((a, b) => a.number - b.number))
|
map(songs => songs.sort((a, b) => a.number - b.number))
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user