Now everything is actually working again.

This commit is contained in:
2023-09-30 00:21:58 +00:00
parent 2aec7a3cff
commit 2c549c7c59
11 changed files with 150 additions and 33 deletions

View File

@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { RuntimeConfigLoaderService } from 'runtime-config-loader';
@Component({

View File

@ -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';

View File

@ -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);