mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-12 13:01:42 +02:00
Now everything is actually working again.
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { RuntimeConfigLoaderService } from 'runtime-config-loader';
|
||||
|
||||
|
||||
@Component({
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { BrowserModule, DomSanitizer } from '@angular/platform-browser';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RuntimeConfigLoaderModule } from 'runtime-config-loader';
|
||||
|
||||
import { AppRoutingModule } from './app-routing.module';
|
||||
import { AppComponent } from './app.component';
|
||||
|
@ -26,11 +26,11 @@ export class SongServiceService {
|
||||
|
||||
let out = new Array<Song>();
|
||||
|
||||
/* this.http.get(this.api +"/songs/compl?search="+text).subscribe((data: JSON) => {
|
||||
this.http.get(this.api +"/songs/compl?search="+text).subscribe((data: Observable<JSON>) => {
|
||||
data.forEach(element => {
|
||||
out.push(new Song(element["title"],element["artist"],element["karafun_id"],element["duo"],element["explicit"],element["_id"],element["styles"],element["languages"]));
|
||||
});
|
||||
});*/
|
||||
});
|
||||
|
||||
const observable = new Observable<Array<Song>>( subscriber => {
|
||||
subscriber.next(out);
|
||||
|
Reference in New Issue
Block a user