i will combine an angular app with a php backend - but somehow my variable "intrologos" is shown as 'wrong' ... the "intrologos" befor the ":" ... additionally thr "res['data']" is shown as false ...
export class IntroLogosService {
baseUrl = 'http://localhost/backend';
intrologos: IntroLogos[];
constructor(private http: HttpClient) { }
getAll(): Observable<IntroLogos[]> {
return this.http.get(`${this.baseUrl}/listintrologos`).pipe(
map((res) => {
this.intrologos = res['data'];
return this.intrologos;
}));
}
}
the IntroLogos class is imported ... someone an idea? Thanks!